UNPKG

@fails-components/webtransport

Version:

A component to add webtransport support (server and client) to node.js using libquiche

33 lines (29 loc) 1.65 kB
// Copyright (c) 2022 Marten Richter or other contributers (see commit). All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * // Spec * @typedef {import('./dom').WebTransportDatagramStats} WebTransportDatagramStats * @typedef {import('./dom').WebTransportStats} WebTransportStats * @typedef {import('./dom').WebTransportCloseInfo} WebTransportCloseInfo * @typedef {import('./dom').WebTransportDatagramDuplexStream} WebTransportDatagramDuplexStream * @typedef {import('./dom').WebTransportBidirectionalStream} WebTransportBidirectionalStream * @typedef {import('./dom').WebTransportSendStreamStats} WebTransportSendStreamStats * @typedef {import('./dom').WebTransportSendStream} WebTransportSendStream * @typedef {import('./dom').WebTransportReceiveStreamStats} WebTransportReceiveStreamStats * @typedef {import('./dom').WebTransportReceiveStream} WebTransportReceiveStream * @typedef {import('./dom').WebTransportHash} WebTransportHash * @typedef {import('./dom').WebTransportOptions} WebTransportOptions * @typedef {import('./dom').WebTransportReliabilityMode} WebTransportReliabilityMode * * Public API * @typedef {import('./types').WebTransportSessionImpl} WebTransportSession * @typedef {import('./types').HttpServerInit} HttpServerInit */ // both imports from the browser side and for nodes to generate a joint type file export { HttpServer, Http3Server, Http2Server } from './server.js' export { WebTransport, quicheLoaded } from './webtransport.node.js' export { WebTransportPonyfill, WebTransportPolyfill } from './webtransport.browser.js'