sip.js.peerconnectiondelegate.ondatachannel.md
September 26, 2022 ยท View on GitHub
Home > sip.js > PeerConnectionDelegate > ondatachannel
PeerConnectionDelegate.ondatachannel() method
Triggered when an RTCDataChannel is added to the connection by the remote peer calling createDataChannel().
Signature:
ondatachannel?(event: RTCDataChannelEvent): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| event | RTCDataChannelEvent | RTCDataChannelEvent. |
Returns:
void