Websocket training project
Project description
Installation
pip install websocket-training
Usage
import uvicorn
from fastapi import FastAPI
from websocket_training.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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c88ad5005b63365b585cc80959317823ac5794828ee77a4d9110f7b4abb62e |
|
MD5 | b01c130b1a2cc1487228dd0bc53b0e49 |
|
BLAKE2b-256 | 1b6e6c494809bd3f0c4b5abde6e444878c07c0a91816a51c772d76bd7c2c3455 |