UNPKG

@d-id/client-sdk

Version:
12 lines (11 loc) 410 B
import { ChatProgressCallback } from '../../types'; import { Auth } from '../../types/auth'; export interface SocketManager { socket?: WebSocket; disconnect: () => void; subscribeToEvents: (data: any) => void; } export declare function createSocketManager(auth: Auth, host: string, callbacks: { onMessage: ChatProgressCallback; onError?: (error: Error) => void; }): Promise<SocketManager>;