Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eeue56/pychat.js

A chat system built around graceful-websockets and tornado
https://github.com/eeue56/pychat.js

Last synced: about 1 month ago
JSON representation

A chat system built around graceful-websockets and tornado

Awesome Lists containing this project

README

        

PyChat.js
=========

Implementation notes
====

PyChat.js is a chat client/server application using a Python backend (tornado) and a Javascript frontend, designed to be lightweight and extendable.
At the moment we're using websockets only - there is plans to enable the fallback ajax of graceful-websockets but it has not been done yet.
Because we use websockets, the performance of the server is very fast - almost instantiously. At the moment it doesn't support any version of Internet Explorer
Graceful-websockets it a little outdated for our use, and we will be looking into moving to a different provider for websocket support.

How do use it
====

To install it, either grab a copy of this repo or use

pip install pychatjs

if you just want the server.

By default, PyChat.js listens on port 8000.

To set it up, either run the run_server.py file or have a file that contains
import tornado.ioloop

from pychatjs.server.run_server import application

application.listen(8000)
tornado.ioloop.IOLoop.instance().start()

There is a sample chat client contained in the client folder. The actual server is in server. Database and configs contain samples of our setup.
We are using haproxy to send requests to Tornado and supervisord to keep the server alive.