Websocket training project
Project description
Installation
pip install websocket-trainig
Usage
import uvicorn
from fastapi import FastAPI
from websocket-trainig.ws_router import connect_ws, get_ws_manager, ConnectionManager
app = FastAPI()
connect_ws(app)
manager: ConnectionManager = get_ws_manager()
print(manager.count())
if __name__ == '__main__':
uvicorn.run('main:app')
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
Built Distribution
Close
Hashes for websocket_training-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6928077decfbe3e568c313127c2b9df14ceabefddb5e1f15b20f5808ae261125 |
|
MD5 | 8eff398983726aeda3024908a7a4d882 |
|
BLAKE2b-256 | 873c7c0e2681d0c09b24bc1b0c775d788d86ef4df3debb55cfdf6ff9ae2a656d |