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

ParameterTypeDescription
eventRTCDataChannelEventRTCDataChannelEvent.

Returns:

void

Contents

  1. 1PeerConnectionDelegate.ondatachannel() method
  2. 2Parameters