TsgcWebTransportStream › Events
Two events for applications, plus one transport hook that the HTTP/3 client and server assign for you.
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.
| Name | Description |
|---|---|
| OnData | Fires when application bytes arrive on this stream. |
| OnClose | Fires when Close is called on this stream. |
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.
| Name | Description |
|---|---|
| OnWriteBytes | The stream's raw writer: receives every byte WriteData produces and puts it on the backing QUIC stream. |
| Name | Description |
|---|---|
| OnClose | Fires when Close is called on this stream. |
| OnData | Fires when application bytes arrive on this stream. |
| OnWriteBytes | Transport hook: the stream's raw writer, which puts bytes on the backing QUIC stream. |