UNPKG

@d-id/client-sdk

Version:
13 lines (11 loc) 432 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; }, externalId?: string): Promise<SocketManager>;