aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/tests/interfaces/webtransport.idl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/tests/interfaces/webtransport.idl')
-rw-r--r--tests/wpt/tests/interfaces/webtransport.idl9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/wpt/tests/interfaces/webtransport.idl b/tests/wpt/tests/interfaces/webtransport.idl
index 281c096d21d..7421dcb432c 100644
--- a/tests/wpt/tests/interfaces/webtransport.idl
+++ b/tests/wpt/tests/interfaces/webtransport.idl
@@ -93,8 +93,9 @@ dictionary WebTransportConnectionStats {
};
dictionary WebTransportDatagramStats {
- unsigned long long expiredOutgoing;
unsigned long long droppedIncoming;
+ unsigned long long expiredIncoming;
+ unsigned long long expiredOutgoing;
unsigned long long lostOutgoing;
};
@@ -103,6 +104,7 @@ interface WebTransportSendStream : WritableStream {
attribute WebTransportSendGroup? sendGroup;
attribute long long sendOrder;
Promise<WebTransportSendStreamStats> getStats();
+ WebTransportWriter getWriter();
};
dictionary WebTransportSendStreamStats {
@@ -132,6 +134,11 @@ interface WebTransportBidirectionalStream {
readonly attribute WebTransportSendStream writable;
};
+[Exposed=*, SecureContext]
+interface WebTransportWriter : WritableStreamDefaultWriter {
+ Promise<undefined> atomicWrite(optional any chunk);
+};
+
[Exposed=(Window,Worker), Serializable, SecureContext]
interface WebTransportError : DOMException {
constructor(optional DOMString message = "", optional WebTransportErrorOptions options = {});