django-websocket-redis icon indicating copy to clipboard operation
django-websocket-redis copied to clipboard

Socket IO Protocol integration

Open javrasya opened this issue 10 years ago • 3 comments

To be able to use socket.io on client side, could there be an implementation for it? Maybe there could be a custom RedisPublisher and a custom RedisSubscriber customised for Socket IO protocol like it is in gevent-socketio

Is that possible?

javrasya avatar Feb 03 '15 18:02 javrasya

What is the benefit of socket.io over native websockets?

jrief avatar Feb 03 '15 22:02 jrief

There are a lot of socket.io supported javascript libraries which handles connection lost etc. To utilize it, server must support socket.io too. This would be the benefit. (Socket IO what I mean is communication protocol between client and websocket server, not a nodejs stuff.)

javrasya avatar Jun 03 '15 07:06 javrasya

My intention for writing this app, was to have a pure Python based websocket implementation. When I evaluated for alternatives, one had to run Node.js side by side with the WSGI-Server. This is unacceptable from a developers point of view. Moreover, I only focused on the new Websocket implementation inside uWSGI (as of fall 2013).

Another consideration at that time was, in my opinion websockets will go mainstream and become the only wide spread implementation to handle server side events.

From what I have seen now (and thanks reminding me on this), gevent-socketio seems to be a good alternative. I currently use a websocket implementation based on https://bitbucket.org/Jeffrey/gevent-websocket which doesn't work with Python 3 and is poorly maintained. Therefore switching to an alternative WS-implementation (which btw. handles other protocols as well) would be highly appreciated.

The problem is, that currently I have not project which required this library and thus can not spend time on it. If you want to implement this, you are welcomed warmly.

jrief avatar Jun 03 '15 09:06 jrief