Skip to main content

Simple long polling implementation

Project description

pip install longPolling

客户端

单向传输

import longPolling
example=longPolling.client.Client(url, callback)
example.login(uername)

双向传输

import longPolling
example=longPolling.client.BothwayClient(url, callback)
example.login(uername)
example.send(data)

服务端

单向传输

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

pypilongPolling · PyPI

本项目在苟浩铭/长轮询 (gitee.com)上开源

帮助文档参见宽宽的帮助文档

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.4.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

longPolling-0.0.4-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page