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

Interface WebSocketState

frontend/src/store/websocketStore.ts:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { useChatStore } from './chatStore';
4
5interface WebSocketState {
6 ws: WebSocket | null;
7 connectionStatus: 'connecting' | 'connected' | 'disconnected';
8 reconnectAttempts: number;
9
10 // Actions
11 connect: (pipelineId: string) => void;
12 disconnect: () => void;
13 send: (data: any) => void;
14}
15
16export const useWebSocketStore = create<WebSocketState>((set, get) => ({
17 ws: null,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected