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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc0709267f116daeb3985c9e7a3aabb7b7a78d77e6cf284f27755aefe5033b80 |
|
MD5 | 9fa7b5b7f746ddc25c85c9cd92ec316d |
|
BLAKE2b-256 | 54d5f8211825dab8ced654ad12314f7500a6d3a340b506e73d63d7c612ac94e3 |