Skip to main content

Module frame

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§

ClientFrame
Anything a client sends.
Empty
An empty object ({}), the payload of ready and end.
InitBody
Init body: the credentials a browser cannot put on the CONNECT request. Empty for a client that authenticated with CONNECT headers.
ServerFrame
Anything the server sends. Exactly one of the optional fields is set.

Enums§

ClientMessage
A client frame, classified.