如题,有类似Node.js中Socket.io一样的或者别的模块吗?
PHP中文网2017-04-17 16:45:04
If you want to write it yourself, pay attention to the payload length network byte order
巴扎黑2017-04-17 16:45:04
In the source code package of tornado, there is the chat room source code for websocket implementation. The code is very small. Read it
tornado/demos/websocket/chatdemo.py
高洛峰2017-04-17 16:45:04
If you are using PHP, you can use swoole or workerman. If you are using python, I am also wondering if there is anything easier to get started with.