Serialize a relay message into a versioned, length-prefixed frame. Tunnel data uses a compact binary header and raw bytes; all control traffic uses JSON after the common version/type bytes.
Serialize a relay message into a versioned, length-prefixed frame. Tunnel data uses a compact binary header and raw bytes; all control traffic uses JSON after the common version/type bytes.