/
RTCDataChannelEvent.cljs
36 lines (26 loc) · 1.46 KB
/
RTCDataChannelEvent.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(ns web.rtc.RTCDataChannelEvent
"The RTCDataChannelEvent() constructor returns a new `web.rtc.RTCDataChannelEvent`
which represents a `datachannel` event. These events sent to
`web.audio.RTCPeerConnection` when its remote peer is asking
open an `web.rtc.RTCDataChannel` between the two peers."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The RTCDataChannelEvent() constructor creates a new `web.rtc.RTCDataChannelEvent`.
type
A `web.dom.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`"
js/RTCDataChannelEvent)
(defn channel
"Property.
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`"
[this]
(-> this (.channel)))