New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

websocket-training

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket-training

Websocket training project

0.1.8
Maintainers
1

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')

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts