6.3 RTCDataChannelEvent
The datachannel
event uses the RTCDataChannelEvent
interface.
- WebIDL[Exposed=Window]
- interface
RTCDataChannelEvent
: Event {constructor
(DOMString type,RTCDataChannelEventInit
eventInitDict);- readonly attribute
RTCDataChannel
channel
;- };
Constructors
RTCDataChannelEvent.constructor()
Attributes
channel
of type RTCDataChannel
, readonly
The channel
attribute represents the RTCDataChannel
object associated with the event.
- WebIDLdictionary
RTCDataChannelEventInit
: EventInit {- required
RTCDataChannel
channel
;- };
Dictionary RTCDataChannelEventInit
Members
channel
of type RTCDataChannel
, required
The RTCDataChannel
object to be announced by the event.