UNPKG

@klever-one/web-sdk

Version:

Web SDK for integrating real-time room management and streaming functionality into web applications

12 lines (11 loc) 502 B
import { ConnectionEvent, ConnectionEventType, EventCallback } from '../types/events.types'; export declare class ConnectionEventBus { private static instance; private listeners; private constructor(); static getInstance(): ConnectionEventBus; emit(event: ConnectionEvent): void; subscribe(eventType: ConnectionEventType, callback: EventCallback): () => void; subscribeToMultiple(eventTypes: ConnectionEventType[], callback: EventCallback): () => void; clear(): void; }