Re:The easiest way to add WebSockets to Django
by fredley on Monday January 27, 2014 @10:45AM
(#7130867)
Just this last week I started working on a new project with django-socketio, and I'm pretty happy with it so far. Why is django-websocket-request better?
[ Parent
| on HN ]
Re:The easiest way to add WebSockets to Django
by jpdlla on Monday January 27, 2014 @10:59AM
(#7130965)
I did look into django-socketio when doing research, but never actually used it. django-websocket-request is way more simple, because it does way less and doesn't cover as much as django-socketio. For example, django-socketio is bound to only using socket.io, but it also includes a whole channel subscription and broadcast system so you can send messages from the server to specific channels. django-websocket-request only enables you to add a WebSocket layer over your already existing REST API / Views. I'll eventually have to look into doing things that django-socketio does.
Re:The easiest way to add WebSockets to Django
by mcantelon on Monday January 27, 2014 @01:49PM
(#7132247)
Does django-websocket-request, like django-socketio , support fallback to other transport methods if websocket isn't available in a browser?
Re:The easiest way to add WebSockets to Django
by jpdlla on Monday January 27, 2014 @01:55PM
(#7132295)
django-websocket-request doesn't really know anything about websockets specifically. The example I provided uses sockjs which provides websocket emulation and does upgrades to other methods if supported.