sip.js.sessiondescriptionhandler.createdatachannel.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDescriptionHandler > createDataChannel

SessionDescriptionHandler.createDataChannel() method

Create a data channel.

Signature:

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

Parameters

ParameterTypeDescription
optionsSessionDescriptionHandlerOptionsSession 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.