sync library

Server–client mode of crdt_socket_sync on a Serverpod web server.

The HTTP server stays Serverpod's; each upgraded socket is handed to a DocumentSessionHost, which holds the documents and takes the aligned snapshots.

Classes

CRDTServerRegistry
Class managing the CRDT document registry on the server.
CrdtSyncRoute
A Serverpod Route that upgrades the request and hands the socket to sessionHost, the CRDT-aware (DocumentSessionHost) side of the protocol.
DocumentSessionHost
CRDT-aware session host: the server half of the document sync protocol, with no transport of its own.
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.