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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file longPolling-0.0.4.tar.gz.

File metadata

  • Download URL: longPolling-0.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for longPolling-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d7047165aae3736932f8a4fdeb7003f2eb1dc237b86e9aaac8619cb79ae6ed79
MD5 774c98a59b80ebdb76413529c99afec0
BLAKE2b-256 8b33f02ddbb32804489d14da870c505d4ff893ab8e6687e6dd7560948e107c70

See more details on using hashes here.

File details

Details for the file longPolling-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: longPolling-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for longPolling-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c195bb775310346bf32b206186ccd40cb12d14a7554f6d69bdd89e1e53f967fd
MD5 e67cf5b73204dee79861861e7b616a40
BLAKE2b-256 866de3b441eb0926cadedca04b4d2d7db31bf6c92d10886f7033b0d61a2f52a5

See more details on using hashes here.

Supported by

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