rxfy-protocol
v2.0.0
Published
Wire protocol for rxfy live updates
Readme
rxfy-protocol
The wire protocol and codec for rxfy live updates. You rarely import this directly — rxfy-server and rxfy-ws use it — but it defines the contract.
Messages
- Server → client:
patch(an entity changed),stale(a state channel was invalidated). - Client → server:
subscribe/unsubscribe(by topic id).
Codec
serialize(message)— encode to a string (via superjson, soDateetc. survive).parseServerMessage(raw)/parseClientMessage(raw)— validate and decode.PROTOCOL_VERSION— bumped on breaking wire changes.
See the Live messages docs.
