blob: 16df63a2e0f2063f68b23edaefc2a04a9ffa0e0f (
plain)
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
|
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/web-transport/#web-transport
[
ActiveScriptWrappable,
Exposed=(Window,Worker),
RuntimeEnabled=QuicTransport
] interface WebTransport {
[CallWith=ScriptState, RaisesException, MeasureAs=WebTransport] constructor(USVString url, optional QuicTransportOptions options = {});
[CallWith=ScriptState, RaisesException] Promise<SendStream>
createUnidirectionalStream();
readonly attribute ReadableStream incomingUnidirectionalStreams;
[CallWith=ScriptState, RaisesException] Promise<BidirectionalStream>
createBidirectionalStream();
readonly attribute ReadableStream incomingBidirectionalStreams;
readonly attribute WritableStream datagramWritable;
readonly attribute ReadableStream datagramReadable;
void close(optional WebTransportCloseInfo closeInfo = {});
readonly attribute Promise<void> ready;
readonly attribute Promise<WebTransportCloseInfo> closed;
};
|