Simple long polling implementation
Project description
客户端
单向由服务端向客户端发送
import longPolling example=longPolling.client.Client(url, callback) example.login(uername)
或者双向发送
import longPolling example=longPolling.client.BothwayClient(url, callback) example.login(uername) example.send(xxx)
服务端
单向由服务端向客户端发送
import longPolling example=longPolling.server.Server(host,port) example.send(username,message)
或者双向发送
import longPolling example=longPolling.server.BothwayServer(host,port,callback) example.send(username,message)
关于作者
作者 宽宽2007
本项目在 苟浩铭/长轮询 上开源
帮助文档参见 长轮询(longPolling)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
longPolling-0.0.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for longPolling-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4452e5a47bbe54fe690a802833aa428422f6fb63350b05c3e4ea59e00b8d9dd1 |
|
MD5 | 0edad02a6c57c712f1d658bf626b0ac0 |
|
BLAKE2b-256 | 39ef9867dc504f5761f0b9b06b430443e9d01ba50f866b97505169115a39a774 |