Coder Social home page Coder Social logo

swi-chat's Introduction

SWI-Prolog based chat server

This repository provides a demonstration for using the recently added websocket support for realising a chat server. To use it, you must install SWI-Prolog 7.1.19 or later. Then, you can load debug.pl and run

?- server.

This will start the server at port 3050 in debug mode, showing a graphical window with the running server threads and debug messages in the console. Load chat.pl if you want to run the demo interactively, but without noisy debugging messages.

Running as a service

The script daemon.pl is provided to start the server as a Unix daemon process. Run ./daemon.pl --help for a brief help message.

Starting as an upstart job

The service can be started as an (Ubuntu) upstart job by copying upstart/chat.conf to /etc/init editing /etc/init/chat.conf to reflect the installation directory. After that, run this command to start the server:

% sudo service chat start

Status

The chatserver itself is really simple. Tested with the server running on Linux using firefox and chromium as clients. Anne Ogborn confirmed it also works using Windows 7 as server and IE 11.0 as client.

Future

The library hub.pl is probably going to end up as a core library and the demo program will than be added as a demo application.

swi-chat's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.