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
Routethat 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
-
TransportConnectionover a RelicRelicWebSocket, the socket a ServerpodWebSocketUpgradehands over. -
SessionHostServer<
S extends ClientSession> -
A
CRDTSocketServerthat owns sessions, not a socket.
Enums
- SessionHostState
- The lifecycle of a SessionHostServer.