I am working on a project now, which requires the use of websocket. I need python to connect to the websocket, but I don’t know how to use python to connect to the websocket. I have been looking for it for a long time and haven’t found it. Please help me~~
flask is deployed using gevent-websocket + gunicorn
app.py
demoUse gunicorn to start and specify gevent-websocket
django uses Django-websocket
https://github.com/archever/p...
Thank you everyone, I couldn’t find a solution on Baidu for a long time. The master above should be able to use it, but I don’t understand it very well. Thank you, I really gained something by going to Google, so I decisively abandoned Baidu
This is on someone else’s github, you can use it
It is recommended to use tornado, which supports websocket. The backend of Zhihu is built using tornado