Socketing for a real-time Django app

I am trying to assess the advantages and disadvantages of implementing a Django app with real-time capabilities using Socket.io and Swamp Dragon. I realize Socket has a much wider developer network and good documentation, but Swamp Dragon is built specifically for Django / which is wrapped for Python. However, I have no problem with the larger JS overhead in the Socket.

Does anyone have experience using any of these (preferably Socket 1.0 and Django 1.6 or higher)? Are there any resources you could point me in the direction? I know this Django module (which has a bad build and uses an old version of Socket) and articles like Max Bernstein . Just look for some more resources or possible frameworks to consider. Thank.

+3


source to share


2 answers


After some research in this field. I decided to use swamp eel because as you said. Designed specifically for Django and provides classes to automatically publish your models. It is very easy to make some model to notify all users of its changes.

The problem with the socketio package is an outdated version using the old version of socketio. Last month someone commented on the work done. Check out # 19 .

Another package worth mentioning is django-websocket-redis . It has a working demo along with the django-angular package (from the same author).



But as I said, I decided to use swampdragon because it is very easy to use and because its work to integrate with the django rest framework.

Hope it helps.

+2


source


You can use django-omnibus . It uses SockJS which is really reliable (possibly more reliable than SocketIO). It also works with older browser.



+1


source







All Articles