relay library

Relay mode of crdt_socket_sync on a Serverpod web server.

The HTTP server stays Serverpod's; each upgraded socket is handed to a RelaySessionHost, which rebroadcasts opaque change blobs per room and never interprets CRDT data.

Classes

CrdtRelayRoute
A Serverpod Route that upgrades the request and hands the socket to sessionHost, the relay (RelaySessionHost) side of the protocol.
RelayCompactionCoordinator
Decides when the relay asks a client to upload a snapshot to compact a room log.
RelaySessionHost
Relay session host: the server half of the relay protocol, with no transport of its own.
RelayStore
Pluggable, CRDT-agnostic persistence for relay rooms.
RelicWebSocketConnection
TransportConnection over a Relic RelicWebSocket, the socket a Serverpod WebSocketUpgrade hands over.
SessionHostServer<S extends ClientSession>
A CRDTSocketServer that owns sessions, not a socket.

Enums

SessionHostState
The lifecycle of a SessionHostServer.