Home > sip.js > SessionDescriptionHandler > createDataChannel
Create a data channel.
Signature:
protected createDataChannel(options?: SessionDescriptionHandlerOptions): Promise<void>;
Parameter | Type | Description |
---|---|---|
options | SessionDescriptionHandlerOptions |
Session description handler options. |
Returns:
Promise<void>
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.