websocket server for django application websocket server for django application django django

websocket server for django application


Django is a synchronous web server. it means you cannot use websocket directly with it. But you have various option to do websocket in Django.

Use a full python stack to do it: use Tornado and Django. You can follow this post

Use Nodejs + socket.io + message broker : Follow this type of tutorial

You will find more resources to help you doing that with node.js & socket.io than using tornado.


With the new update (Django 1.10) Django does now support websockets.

Please read this article for more information: In deep with Django channels - the future of real time apps in Django