Skip to main content

Module ws_protocol

Module ws_protocol 

Source
Expand description

Shared WebSocket wire-format types for relayer โ†” stress communication.

These types define the JSON contract between mx-relayer (serializer) and mx-stress (deserializer). Both crates MUST use these types instead of defining their own โ€” this prevents silent field-name divergence (e.g. camelCase vs snake_case) that causes runtime parse failures.

Structsยง

BatchBroadcastResponse
Response to a JSON-encoded transaction broadcast via WebSocket.
ProtoBroadcastResponse
Response to a proto-encoded binary broadcast via WebSocket.
TxErrorResponse
Error details for a single failed transaction in a batch response.