Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Long project name... AND an example of using django and gevent-socketio to build a chat application using redis as the backend.

Notifications You must be signed in to change notification settings

rlr/django-gevent-socketio-redis-chat-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-gevent-socketio-redis-chat-example

This is an example of using django and gevent-socketio to build a chat application using redis as the backend.

Installation

Note: you probably want to create and activate a virtualenv before installing the requirements below. I use and like virtualenvwrapper.

git clone git://github.com/rlr/django-gevent-socketio-redis-chat-example.git
cd django-gevent-socketio-redis-chat-example
pip install -r requirements.txt

Running

Start the gevent socketio server:

cd chatproject
./manage.py run_gevent 9000

Then point your browser to http://localhost:9000/.

Bugs

  • I have noticed weird things happen in cases where multiple clients are connecting at same time. Race conditions?

TODO/Wishlist

  • Connected users list
  • Chat rooms
  • Private/1:1 chat
  • Experiment posting messages outside of socket.io connection. This way we can limit the socket.io connection to pubsub messages and all blocking calls (to database, etc.) can be made through the normal django/wsgi stack.

About

Long project name... AND an example of using django and gevent-socketio to build a chat application using redis as the backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published