This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

createDataChannel

Summary

Creates an RTCDataChannel object with the given label.

Method of apis/webrtc/RTCPeerConnectionapis/webrtc/RTCPeerConnection

Syntax

var result = peerConnection.createDataChannel(label, options);

Parameters

label

Data-type
String

The label of the data channel.

options

Data-type
Object

(Optional)

Currently the only available option is a Boolean property named “reliable” (e.g. {reliable: false})

Return Value

Returns an object of type