MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / __init__

Method __init__

backend/app/services/websocket.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 """Manages WebSocket connections for real-time communication."""
9
10 def __init__(self):
11 # Store active connections by pipeline_id
12 self.active_connections: Dict[str, List[WebSocket]] = {}
13 # Store pipeline states
14 self.pipeline_states: Dict[str, Dict] = {}
15
16 async def connect(self, websocket: WebSocket, pipeline_id: str):
17 """Accept and store a new WebSocket connection."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected