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
Parameter | Type | Description |
---|---|---|
dataChannel | DataChannel | the newly created data channel |
Returns:
void | Promise<void>