Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 689 Bytes

sip.js.peerconnectiondelegate.ondatachannel.md

File metadata and controls

24 lines (14 loc) · 689 Bytes

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