SignalR Alternative for Python

2019-04-30 12:36发布

问题:

What would be an alternative for SignalR in Python world?

To be precise, I am using tornado with python 2.7.6 on Windows 8; and I found sockjs-tornado (Python noob; sorry for any inconveniences). But sockjs supports just 3 types of events and there are some limitations; I need things like groups, subscribers, propagating and other features that SignalR provides.

回答1:

You are probably looking for Twisted, a whole real-time engine for applications. https://twistedmatrix.com/trac/

If you do microframeworks, Flask (think Sinatra on ruby) also has a real-time module, but it's all barebones really, it might not be what you're looking for:

http://flask.pocoo.org/

Cheers.