推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
yunson
V2EX  ›  Python

基于 websocket 的聊天小应用

  •  
  •   yunson · Jan 4, 2017 · 4083 views
    This topic created in 3599 days ago, the information mentioned may be changed or developed.
    • 开发语言
      • 后端: python
      • 前端: html
    • 流程图简介

    流程图

    重点在于应用 websocket ,界面有点丑。

    原文链接

    9 replies  •  2017-01-05 09:27:38 +08:00
    az999
    az999
    Jan 4, 2017
    1
    我前段时间在学校和我的前端哥们也是这么设计的,写的一个 1 对多的类似阿里旺旺的功能,聊天数据的持久化我们当时没做。
    yunson
    yunson
    OP
    Jan 4, 2017 via Android
    2
    @az999 👍
    wwqgtxx
    wwqgtxx
    Jan 5, 2017
    3
    用 socket.io 做起来更方便
    crazycabbage
    crazycabbage
    Jan 5, 2017 via Android
    4
    之前也使用 Python 建了一个,只不过用的 tornado 框架搞的,自带 websocket
    hiro0729
    hiro0729
    Jan 5, 2017 via Android
    5
    目前公司一个项目我用的 netty 和 websocket ,实现了 iOS ,安卓,微信 h5 和 pcweb 多端通信,客户端实现心跳和断线重连,开发正式项目完全没问题的
    yunson
    yunson
    OP
    Jan 5, 2017 via Android
    6
    @crazycabbage 回头用下 tornado
    yunson
    yunson
    OP
    Jan 5, 2017 via Android
    7
    @hiro0729 嗯,心跳有好多好处,能确定客户端是否还存在、确保连接可用等等
    yuxuan
    yuxuan
    Jan 5, 2017
    8
    去年毕业设计就搞得这个 后端是 node 写的 socket.io 很好用~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4062 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:26 · PVG 17:26 · LAX 01:26 · JFK 04:26
    ♥ Do have faith in what you're doing.