@ngenux/ngage-whiteboarding
Version:
A collaborative whiteboard React component with real-time synchronization
11 lines • 797 B
TypeScript
import { Socket } from 'socket.io-client';
import { CompressedData } from '@/types';
export declare const onSend: (roomId: string, data: CompressedData, webSocketUrl?: string) => void;
export declare const onReceive: (roomId: string, callback: (data: CompressedData) => void, webSocketUrl?: string, onRoomJoined?: () => void) => void;
export declare const leaveRoom: (roomId: string) => void;
export declare const disconnectSocket: () => void;
export declare const isSocketConnected: () => boolean;
export declare const getSocket: () => Socket | null;
export declare const onSocketStatusChange: (callback: (isConnected: boolean) => void) => (() => void);
export declare const waitForSocket: (webSocketUrl?: string, timeoutMs?: number) => Promise<void>;
//# sourceMappingURL=socket-utility.d.ts.map