The RTCDataChannelEvent() constructor returns a new web.rtc.RTCDataChannelEvent
which represents a datachannel
event. These events sent to
web.video.RTCPeerConnection
when its remote peer is asking
open an web.rtc.RTCDataChannel
between the two peers.
The RTCDataChannelEvent() constructor returns a new `web.rtc.RTCDataChannelEvent` which represents a `datachannel` event. These events sent to `web.video.RTCPeerConnection` when its remote peer is asking open an `web.rtc.RTCDataChannel` between the two peers.
(channel this)
Property.
[Read Only] [Experimental]
The read-only property RTCDataChannelEvent.channel returns the associated with the event.
var channel = RTCDataChannelEvent.channel;
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/channel
Property. [Read Only] [Experimental] The read-only property RTCDataChannelEvent.channel returns the associated with the event. `var channel = RTCDataChannelEvent.channel;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/channel`
(constructor & args)
Constructor.
The RTCDataChannelEvent() constructor creates a new web.rtc.RTCDataChannelEvent
.
type
A web.DOMString
which specifies the name of the event. There is only one type of RTCDataChannelEvent, so this will always be "datachannel".
rtcDataChannelEventInit
A RTCDataChannelEventInit dictionary, which has following fields:
"channel" of type web.rtc.RTCDataChannel
, representing the data channel being concerned by the event.
"bubbles", optional, inherited from EventInit. Indicates if the event must bubble or not. Default is false.
"cancelable", optional, inherited from EventInit. Indicates if the event can be canceled or not. Default is false.
See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/RTCDataChannelEvent
Constructor. The RTCDataChannelEvent() constructor creates a new `web.rtc.RTCDataChannelEvent`. type A `web.DOMString` which specifies the name of the event. There is only one type of RTCDataChannelEvent, so this will always be \"datachannel\". rtcDataChannelEventInit A RTCDataChannelEventInit dictionary, which has following fields: \"channel\" of type `web.rtc.RTCDataChannel`, representing the data channel being concerned by the event. \"bubbles\", optional, inherited from EventInit. Indicates if the event must bubble or not. Default is false. \"cancelable\", optional, inherited from EventInit. Indicates if the event can be canceled or not. Default is false. See also: `https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/RTCDataChannelEvent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close