Skip to main content

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

websocket_training-0.1.8.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

websocket_training-0.1.8-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page