Expand description
Strict, transport-neutral policy for bounded WebSocket review.
Parsing validates an operator-authored declaration against an already selected application target. It does not open a socket, verify either operator assertion, grant broader target authority, or turn an expected response into observed evidence. Raw endpoints, subprotocols, message IDs, message text, and expected-response digests remain private to the crate-owned execution boundary. Message IDs are operator-declared, non-secret revision handles: the operator must change an ID when the corresponding outbound or expected-response semantics change. Public references never hash the message or expected-response bytes.
Structs§
- WebSocket
Review Limits - Validated finite runtime ceilings from one policy.
- WebSocket
Review Message Ref - Safe borrowed metadata for one ordered message declaration.
- WebSocket
Review Policy - Strict, bounded declaration for one isolated WebSocket connection.
Enums§
- WebSocket
Origin Mode - Origin-header behavior selected by a validated V1 policy.
- WebSocket
Review Policy Error - Static, value-free policy parsing or validation failure.
Constants§
- MAX_
WEBSOCKET_ REVIEW_ CONTROL_ FRAMES - Maximum control frames admitted across the isolated connection.
- MAX_
WEBSOCKET_ REVIEW_ DIRECTION_ BYTES - Maximum cumulative application-message bytes in either direction.
- MAX_
WEBSOCKET_ REVIEW_ MESSAGES - Maximum number of ordered outbound message declarations.
- MAX_
WEBSOCKET_ REVIEW_ MESSAGE_ BYTES - Compatibility name for the hard per-direction application-byte ceiling.
- MAX_
WEBSOCKET_ REVIEW_ MESSAGE_ ID_ BYTES - Maximum bytes in one safe message identifier.
- MAX_
WEBSOCKET_ REVIEW_ MESSAGE_ TEXT_ BYTES - Maximum UTF-8 bytes in one declared outbound text message.
- MAX_
WEBSOCKET_ REVIEW_ POLICY_ BYTES - Maximum accepted exact JSON policy bytes.
- MAX_
WEBSOCKET_ REVIEW_ SUBPROTOCOL_ BYTES - Maximum bytes in the optional WebSocket subprotocol token.
- MAX_
WEBSOCKET_ REVIEW_ TOTAL_ INBOUND_ BYTES - Compatibility name for the cumulative expected inbound-payload ceiling.
- MAX_
WEBSOCKET_ REVIEW_ TOTAL_ OUTBOUND_ BYTES - Compatibility name for the cumulative declared outbound-text ceiling.
- MAX_
WEBSOCKET_ REVIEW_ WALL_ TIME_ MS - Maximum wall-clock duration of one isolated review.
- WEBSOCKET_
REVIEW_ POLICY_ ALGORITHM - Stable interpretation and reference algorithm applied to the V1 schema.
- WEBSOCKET_
REVIEW_ POLICY_ SCHEMA - The only WebSocket review policy schema accepted by this module.