Module frame
Expand description
The frames a WebTransport subscription session carries
(docs/design/subscriptions-websocket.md §6.4, §6a.2).
Field names follow what already ships rather than the older §2.3
sketch: a request is the batch binding’s RpcRequest shape (id, op,
input), and items/errors use the SSE binding’s next/err
(cratestack-axum/src/rpc/sse.rs). A frame’s kind is whichever of
init/op/ready/next/end/err is present — there is no separate
type tag, so new kinds are additive.
Modules§
- close_
code - Session close codes: the WebTransport session close, the WebSocket close frame.
- reset_
code - Stream reset codes (sent on one subscription’s stream).
Structs§
- Client
Frame - Anything a client sends.
- Empty
- An empty object (
{}), the payload ofreadyandend. - Init
Body Initbody: the credentials a browser cannot put on the CONNECT request. Empty for a client that authenticated with CONNECT headers.- Server
Frame - Anything the server sends. Exactly one of the optional fields is set.
Enums§
- Client
Message - A client frame, classified.