6.3 RTCDataChannelEvent

The datachannel event uses the RTCDataChannelEvent interface.

  1. WebIDL[Exposed=Window]
  2. interface RTCDataChannelEvent : Event {
  3. constructor(DOMString type, RTCDataChannelEventInit eventInitDict);
  4. readonly attribute RTCDataChannel channel;
  5. };

Constructors

RTCDataChannelEvent.constructor()

Attributes

channel of type RTCDataChannel, readonly

The channel attribute represents the RTCDataChannel object associated with the event.

  1. WebIDLdictionary RTCDataChannelEventInit : EventInit {
  2. required RTCDataChannel channel;
  3. };

Dictionary RTCDataChannelEventInit Members

channel of type RTCDataChannel, required

The RTCDataChannel object to be announced by the event.