WebTransportTransport
Defined in: seyd/sdks/js/core/src/transport.ts:29
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebTransportTransport(
wt,label):WebTransportTransport
Defined in: seyd/sdks/js/core/src/transport.ts:35
Parameters
Section titled “Parameters”WebTransport
string
Returns
Section titled “Returns”WebTransportTransport
Properties
Section titled “Properties”closed
Section titled “closed”
readonlyclosed:Promise<string>
Defined in: seyd/sdks/js/core/src/transport.ts:32
Resolves with a reason once the transport is gone, however it went.
Implementation of
Section titled “Implementation of”datagrams
Section titled “datagrams”
readonlydatagrams:ReadableStream<Uint8Array<ArrayBufferLike>>
Defined in: seyd/sdks/js/core/src/transport.ts:31
Implementation of
Section titled “Implementation of”
readonlykind:"p2p"
Defined in: seyd/sdks/js/core/src/transport.ts:30
Implementation of
Section titled “Implementation of”
readonlylabel:string
Defined in: seyd/sdks/js/core/src/transport.ts:35
Path label reported in stats: the winning candidate’s, or ‘relay’.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: seyd/sdks/js/core/src/transport.ts:45
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”openControl()
Section titled “openControl()”openControl():
Promise<ControlPipe>
Defined in: seyd/sdks/js/core/src/transport.ts:41
The control stream. Opened once; the pilot speaks first on it.
Returns
Section titled “Returns”Promise<ControlPipe>
Implementation of
Section titled “Implementation of”sendDatagram()
Section titled “sendDatagram()”sendDatagram(
u8):void
Defined in: seyd/sdks/js/core/src/transport.ts:40
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”void