EventMap: {
    connect: ProducerEventData;
    disconnect: ProducerEventData;
    error: BrowserUnsupportedError | DeviceAccessDeniedError | StreamSourceError | RuntimeError;
    socketError: Error;
}

Event map that maps event names to event data types.

Param

The data sent with the connect event.

Param

The data sent with the disconnect event.

Param

The data sent with the error event.

Param

The data sent with the socketError event, contains socket.io errors.

Generated using TypeDoc