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
Routethat 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
-
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.