html5 - 想用Python写一个在线聊天系统,有什么模块能用来处理WebSocket吗?
ringa_lee
ringa_lee 2017-04-17 16:43:04
0
9
440

如题,有类似Node.js中Socket.io一样的或者别的模块吗?

ringa_lee
ringa_lee

ringa_lee

reply all(9)
迷茫

Finally adopted Flask-Socketio

PHPzhong

Then continue to use Socket.io, python is also available.

左手右手慢动作

Flask also has socketio related extensions

Ty80

If you want to write it yourself, pay attention to the payload length network byte order

Peter_Zhu

tornado 支持 websocket

巴扎黑

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

小葫芦

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.

巴扎黑

https://github.com/miguelgrinberg/python-socketio

阿神

If you use python3.4/3.5, you can try aiohttp

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!