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

Method connect

ocr-ml-viewer/backend/main.py:31–33  ·  view source on GitHub ↗
(self, websocket: WebSocket)

Source from the content-addressed store, hash-verified

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

Callers 1

process_ocr_wsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected