mirror of
https://github.com/wisplite/tether-ts.git
synced 2026-05-01 14:22:42 -05:00
16 lines
445 B
TypeScript
16 lines
445 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;
|
|
startConnection: (url: string) => void;
|
|
attemptReconnect: () => void;
|
|
close: () => void;
|
|
send: (message: string) => void;
|
|
}
|