UNPKG

@gitorial/sync

Version:

Universal sync library for real-time tutorial state synchronization between websites and VS Code extensions with built-in relay server orchestration

16 lines 571 B
import { ISyncSocket } from "./ISyncSocket"; export declare class WebSocketClientBrowser implements ISyncSocket { private socket; private messageHandler?; private errorHandler?; private closeHandler?; private openHandler?; connect(url: string): Promise<ISyncSocket>; send(data: any): void; close(): void; onMessage(handler: (data: any) => void): void; onError(handler: (error: any) => void): void; onClose(handler: () => void): void; onOpen(handler: () => void): void; } //# sourceMappingURL=WebSocketClientBrowser.d.ts.map