Metadata-Version: 2.1
Name: longPolling
Version: 0.0.4
Summary: Simple long polling implementation
Home-page: https://kuankuan2007.gitee.io/docs/long-polling/
Author: kuankuan
Author-email: 2163826131@qq.com
License: Mulan PSL v2
Keywords: long polling,flask,http,thread
Platform: windows
Platform: linux
Platform: macos
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: License :: OSI Approved :: Mulan Permissive Software License v2 (MulanPSL-2.0)

长轮询(longPolling)
===================

.. code:: bash

   pip install longPolling 

客户端
------

单向传输
~~~~~~~~

.. code:: python

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

双向传输
~~~~~~~~

.. code:: python

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

服务端
------

.. _单向传输-1:

单向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.server.Server(host,port)
   example.send(username,message)

.. _双向传输-1:

双向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.server.BothwayServer(host,port,callback)
   example.send(username,message)

关于作者
--------

作者主页\ `宽宽2007 <https://kuankuan2007.gitee.io>`__

pypi\ `longPolling · PyPI <https://pypi.org/project/longPolling/>`__

本项目在\ `苟浩铭/长轮询
(gitee.com) <https://gitee.com/kuankuan2007/long-polling>`__\ 上开源

帮助文档参见\ `宽宽的帮助文档 <https://kuankuan2007.gitee.io/docs/long-polling>`__
