Implement ondatachannel event

This commit is contained in:
Fernando Jiménez Moreno 2020-06-01 19:31:15 +02:00
parent 2c5fc3b3c8
commit f5c930087e
6 changed files with 139 additions and 4 deletions

View file

@ -0,0 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://www.w3.org/TR/webrtc/#rtcdatachannelevent
[Exposed=Window]
interface RTCDataChannelEvent : Event {
constructor(DOMString type, RTCDataChannelEventInit eventInitDict);
readonly attribute RTCDataChannel channel;
};
dictionary RTCDataChannelEventInit : EventInit {
required RTCDataChannel channel;
};