Files
tether-ts/dist/utils/websocket.d.ts
T
2026-04-23 08:54:13 -05:00

17 lines
503 B
TypeScript

export declare class WebSocketHandler {
private ws;
private url;
onOpen: () => void;
onQuery: (location: string | undefined, data: any) => void;
onClose: () => void;
private reconnectAttempts;
private maxReconnectAttempts;
private reconnectInterval;
private sendQueue;
onMutation: (mutation_id: string, data: any) => void;
startConnection: (url: string) => void;
attemptReconnect: () => void;
close: () => void;
send: (message: string) => void;
}