EdgeWebrtcConnection.createDatachannel()

DESCRIPTION

Warning: createDatachannel is experimental

Create a new datachannel to the device. WebRTC Datachannels are used internally in Nabto for CoAP requests and streaming.

This means datachannels MUST NEVER use the label coap or labels beginning with stream-!

DECLARATION

  createDatachannel(label: string): Promise<RTCDataChannel>

PARAMETERS

label:
Label to set for the datachannel.

RETURNS

Promise with the created RTCDataChannel object