sockjs-client-twisted:Twisted-Python 的 SockJS 客户端

时间:2021-06-09 09:01:50
【文件属性】:
文件名称:sockjs-client-twisted:Twisted-Python 的 SockJS 客户端
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-09 09:01:50
Python SockJS-Client-Twisted Twisted-Python 的 SockJS 客户端 安装 pip install txsockjs_client 应用 from txsockjs_client import SockJS from twisted . internet import defer , reactor @ defer . inlineCallbacks def helloSockJS (): client = SockJS ( '/echo' , host = '127.0.0.1' , port = 5000 ) yield client . send ( 'Hello SockJS' ) yield client . close () if reactor . running : reactor . sto
【文件预览】:
sockjs-client-twisted-master
----txsockjs_client()
--------__init__.py(3KB)
----LICENSE(1KB)
----setup.py(905B)
----README.md(1KB)
----.gitignore(384B)

网友评论