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

Method connect

cartoon-camera/backend/main.py:32–34  ·  view source on GitHub ↗
(self, websocket: WebSocket)

Source from the content-addressed store, hash-verified

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

Callers 1

process_cartoon_wsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected