TsgcWebTransportStream › Events

TsgcWebTransportStream Events

Two events for applications, plus one transport hook that the HTTP/3 client and server assign for you.

Application Events

Assign OnData as soon as you have the stream. On a peer-opened stream that means inside the session's OnStream handler, before it returns, or the first bytes are discarded.

NameDescription
OnDataFires when application bytes arrive on this stream.
OnCloseFires when Close is called on this stream.

Transport Hooks

Declared as an event property, but it belongs to the transport. The session and the HTTP/3 client and server assign it while opening or adopting a stream. Overwriting it breaks the stream's ability to write.

NameDescription
OnWriteBytesThe stream's raw writer: receives every byte WriteData produces and puts it on the backing QUIC stream.

All Events (alphabetical)

NameDescription
OnCloseFires when Close is called on this stream.
OnDataFires when application bytes arrive on this stream.
OnWriteBytesTransport hook: the stream's raw writer, which puts bytes on the backing QUIC stream.

Back to TsgcWebTransportStream