This is work in progress. The code should work, but it's missing tests, documentation, and an example.
There currently doesn't exist an out-of-the-box app that gives Django the ability to communicate over WebSockets.
TornadIO2 is an implementation of the socket.io protocol on top of the Torando non-blocking web server. Since TornadIO2 and Tornado are written in python, integrating them with Django is almost straightforward.
- A management command to start Tornado and setup URL patterns and handlers.
- A connection class to manage active sessions.
- Utility functions (in the connection class) to facilitate common tasks, such as user authentication.
Please share your ideas, questions, and requests in the Issues section.
Related projects that inspired this work: