Web SDK - PeerEvents.datachannel()

Home > @rainway/web > PeerEvents > datachannel

PeerEvents.datachannel() method

Raised when the remote peer creates a data channel

Signature:

datachannel(dataChannel: DataChannel): void | Promise<void>;

Parameters

ParameterTypeDescription
dataChannelDataChannelthe newly created data channel

Returns:

void | Promise<void>