Documentation for pulsar 0.7.2. For development docs, go here.
The code for this example is located in the examples.djangoapp.manage module.
This is a web chat application which illustrates how to run a django site with pulsar and how to include pulsar asynchronous request middlewares into django. Requires django 1.4 or above. To run:
python manage.py pulse
If running for the first time, issue the:
python manage.py syncdb
command and create the super user.
This example uses the django pulse application.
Check the examples.djangoapp.chat.settings module to see how this classes are used.
The websocket handler managing the chat application.
A new websocket connection is established.
Add it to the set of clients listening for messages.
When a new message arrives, it publishes to all listening clients.
Django middleware for serving the Chat websocket.