Open mattpap opened 10 years ago
Python websocket libraries:
Sockjs seems like the best bet right now, as it works with Python 3.
Thanks. It would be good to have a 2/3 solution. Usually either the first or the later is supported. I was playing with another option, autobahn
, which claims to support both.
Both autobahn
and Tornado/SockJS look comparable, so I guess the issue is whether we prefer Twisted (the asyncio version doesn't have WSGI integration?) or Tornado for the server.
Just giving each a cursory glance, sockjs looks more Pythonic. (on_message
vs onMessage
). All things being equal, I would lean toward a library that follows the underscore naming just because I would expect less surprise from it.
That said, neither of these libraries have any testing -- so tread lightly with them.
This may require websockets.