@d-id/client-sdk
Version:
d-id client sdk
13 lines (11 loc) • 432 B
TypeScript
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>;