栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

A tutorial for a web-based chat server in Python [closed]

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

A tutorial for a web-based chat server in Python [closed]

You can look at using TornadIO. Its a
python implementation of Socket.io, for
Tornado, Tornado is an event-driven python web
server.

https://github.com/MrJoes/tornadio2

http://www.tornadoweb.org/

Socket.io is a cross-browser solution to socket/socket-
like connections from the web client to the server. This will pretty much give
you all the tools you need to do a chat server since it supports pub-sub
subscriptions and messages. The nice thing about using socket.io for your
purposes is that it tries a number of transports in order to ensure that new
and old browsers can all communicate: Websocket, Flashsocket, xhr polling,
jsonp, htmlfile. They all are attempted and used in a way that looks the same
to the client.

Tornadio2 is the newer version that is compatible with the newer Socket.io
0.7+. This version added a lot of features that broke compatibility with 0.6.
However, the original TornadIO contains a chatroom example which you could
review and translate pretty easily to the newer version to get you started:

https://github.com/MrJoes/tornadio/tree/master/examples/chatroom



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/669647.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号