centrifuge-python:适用于Python asyncio库的Centrifugo v1的Websocket客户端

时间:2024-06-05 09:04:37
【文件属性】:

文件名称:centrifuge-python:适用于Python asyncio库的Centrifugo v1的Websocket客户端

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-05 09:04:37

Python

离心机-python(正在进行中) 这是基于Python asyncio库的服务器的Websocket客户端。 用法示例: import time import json import asyncio from cent import generate_token from centrifuge import Client , Credentials def run ( loop ): # Generate credentials. # In production this must only be done on backend side and you should # never show secret to client! user = "3000" timestamp = str ( int ( time . time ()))


【文件预览】:
centrifuge-python-master
----setup.py(1008B)
----.gitignore(1KB)
----requirements.txt(16B)
----example.py(4KB)
----README.md(3KB)
----example_async_await.py(2KB)
----centrifuge()
--------__init__.py(22B)
--------client.py(20KB)

网友评论