MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / connect

Method connect

ml-yolo/backend/main.py:34–36  ·  view source on GitHub ↗
(self, websocket: WebSocket)

Source from the content-addressed store, hash-verified

32 self.active_connections: List[WebSocket] = []
33
34 async def connect(self, websocket: WebSocket):
35 await websocket.accept()
36 self.active_connections.append(websocket)
37
38 def disconnect(self, websocket: WebSocket):
39 self.active_connections.remove(websocket)

Callers 5

process_yolov5_wsFunction · 0.45
from_crawlerMethod · 0.45
from_crawlerMethod · 0.45
__init__Method · 0.45
createProgressBarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected