UNPKG

@bowbee/peer-lite

Version:

Lightweight WebRTC browser library that supports video, audio and data channels

10 lines (9 loc) 337 B
declare type ListenerFunction = (...args: any[]) => void; export declare class EventEmitter { private eventMap; emit(event: string, ...args: any[]): boolean; on(event: string, listener: ListenerFunction): this; off(event: string, listener: ListenerFunction): this; offAll(event?: string): this; } export {};