MCPcopy Index your code
hub / github.com/feast-dev/feast / ConnectionManager

Class ConnectionManager

sdk/python/feast/feature_server.py:728–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726
727 # Chat WebSocket connection manager
728 class ConnectionManager:
729 def __init__(self):
730 self.active_connections: List[WebSocket] = []
731
732 async def connect(self, websocket: WebSocket):
733 await websocket.accept()
734 self.active_connections.append(websocket)
735
736 def disconnect(self, websocket: WebSocket):
737 self.active_connections.remove(websocket)
738
739 async def send_message(self, message: str, websocket: WebSocket):
740 await websocket.send_text(message)
741
742 manager = ConnectionManager()
743

Callers 1

get_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected