Django is a synchronous web server. this means that you cannot directly use websocket. But you have the opportunity to make websocket in Django.
Use the full python stack for this: use Tornado and Django. You can follow the post
Use Nodejs + socket.io + broker messages: Follow this type tutorial
You will find more resources to help you do this with node.js and socket.io than with a tornado.
Alex grs
source share