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

Method connect

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

Source from the content-addressed store, hash-verified

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

Callers 1

process_ocr_wsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected