UNPKG

@aituber-onair/bushitsu-client

Version:

WebSocket client for chat functionality with React hooks support

28 lines (27 loc) 629 B
/** * WebSocket chat message types */ export interface BushitsuMessage { type: 'chat' | 'user_event' | 'system'; room: string; timestamp: string; data: { from: string; fromId?: string; text?: string; mention?: string[]; event?: string; user?: string; details?: any; }; } /** * Bushitsu client options */ export interface BushitsuClientOptions { serverUrl: string; room: string; userName: string; onReceiveMessage: (text: string, userName: string, isMention: boolean) => void; onConnectionChange?: (connected: boolean) => void; }