TsgcWebTransportSession › Methods

TsgcWebTransportSession Methods

Public methods grouped by purpose, followed by the full alphabetical list. Most applications only need OpenStream and Close.

Streams

NameDescription
OpenStreamOpens a new outgoing stream, bidirectional or unidirectional, and sends its WebTransport header.
FindStreamByIdReturns the stream with the given QUIC stream id, or nil when not found.

Datagrams

NameDescription
SendDatagramSends a WebTransport datagram. Raises TsgcQUICException as shipped, since no transport can carry one.
DoDatagramTransport integration point: delivers an inbound datagram payload to OnDatagram.

Session Lifecycle

NameDescription
CloseCloses the session's open streams and raises OnClose. It does not tear down the QUIC connection.
CreateConstructs a session bound to a session id. Called by the HTTP/3 client and server, not by applications.

Transport Integration

These methods are called by the HTTP/3 client and server as they demultiplex the QUIC connection. Applications do not normally call them; they are public so a custom transport can drive a session.

NameDescription
AddIncomingStreamRegisters a peer-opened stream, raises OnStream and delivers any payload that came with it.
RemoveStreamUnregisters a stream from the session's list of open streams. Called for you by Stream.Close.

All Methods (alphabetical)

NameDescription
AddIncomingStreamRegisters a peer-opened stream, raises OnStream and delivers any payload that came with it.
CloseCloses the session's open streams and raises OnClose. It does not tear down the QUIC connection.
CreateConstructs a session bound to a session id. Called by the HTTP/3 client and server, not by applications.
DoDatagramTransport integration point: delivers an inbound datagram payload to OnDatagram.
FindStreamByIdReturns the stream with the given QUIC stream id, or nil when not found.
OpenStreamOpens a new outgoing stream, bidirectional or unidirectional, and sends its WebTransport header.
RemoveStreamUnregisters a stream from the session's list of open streams. Called for you by Stream.Close.
SendDatagramSends a WebTransport datagram. Raises TsgcQUICException as shipped, since no transport can carry one.

Back to TsgcWebTransportSession