Skip to main content

Module relay_proto

Module relay_proto 

Source
Expand description

The relay wire protocol — shared verbatim by the native server/client (super::relay) and the browser client (super::relay_browser). Both targets serialize the SAME RelayFrame with bincode, so a browser tab and a native node speak an identical language across the WebSocket.

This module is target-agnostic (no tokio, no web-sys) so it compiles into both the native binary and the wasm bundle.

Enums§

RelayFrame
A frame on the relay WebSocket. Client→relay: Subscribe/Unsubscribe/ Publish. Relay→client: SubAck/Event.