Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 914 Bytes

sip.js.sessiondescriptionhandler.createdatachannel.md

File metadata and controls

28 lines (16 loc) · 914 Bytes

Home > sip.js > SessionDescriptionHandler > createDataChannel

SessionDescriptionHandler.createDataChannel() method

Create a data channel.

Signature:

protected createDataChannel(options?: SessionDescriptionHandlerOptions): Promise<void>;

Parameters

Parameter Type Description
options SessionDescriptionHandlerOptions Session description handler options.

Returns:

Promise<void>

Remarks

Only creates a data channel if SessionDescriptionHandlerOptions.dataChannel is true. Only creates a data channel if creating a local offer. Only if one does not already exist.