TsgcWebTransportSession › Events
Three events for applications, plus three transport hooks that the HTTP/3 client and server assign for you.
Assign these from your own code. Assign OnStream before the session can receive anything, that is, inside OnWebTransportSession on the server, or immediately after WebTransportConnect returns on the client.
| Name | Description |
|---|---|
| OnStream | Fires when the peer opens a new stream inside this session. |
| OnDatagram | Would deliver an inbound datagram payload. Never fires as shipped. |
| OnClose | Fires when Close is called on this session. |
These are declared as event properties, but they belong to the transport, not to the application. TsgcHTTP3Client.WebTransportConnect and the server's session-accept path assign all three before you ever see the session. Overwriting one breaks the session's ability to write. They are documented because a custom QUIC transport must supply them.
| Name | Description |
|---|---|
| OnOpenStream | Lets the transport allocate the real QUIC stream backing an OpenStream call. |
| OnWriteData | Session-level fallback writer, used when a stream has no per-stream writer. |
| OnSendDatagramData | Receives the encoded datagram packet from SendDatagram. Bound to a no-op as shipped, and never reached, since SendDatagram raises first. |
| Name | Description |
|---|---|
| OnClose | Fires when Close is called on this session. |
| OnDatagram | Would deliver an inbound datagram payload. Never fires as shipped. |
| OnOpenStream | Transport hook: lets the transport allocate the real QUIC stream backing an OpenStream call. |
| OnSendDatagramData | Transport hook: receives the encoded datagram packet from SendDatagram. Bound to a no-op as shipped, and never reached, since SendDatagram raises first. |
| OnStream | Fires when the peer opens a new stream inside this session. |
| OnWriteData | Transport hook: session-level fallback writer, used when a stream has no per-stream writer. |