推荐学习书目
› 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 · 3989 views
    This topic created in 3554 days ago, the information mentioned may be changed or developed.
    • 开发语言
      • 后端: python
      • 前端: html
    • 流程图简介

    流程图

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

    原文链接

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