Dataset Protocol
Real-time dataset synchronization across multiple connected clients. Broadcast inserts, updates, and deletes automatically as they happen.
Real-time dataset synchronization across multiple connected clients. Broadcast inserts, updates, and deletes automatically as they happen.
Streams TDataSet changes from a server-side TDataSet to remote clients in real time. Send the initial snapshot, then push inserts / edits / deletes as they happen.
TsgcWSPClient_Dataset
TDataSet sync over a WebSocket channel
Windows, macOS, Linux, iOS, Android
Enterprise
Bind a TDataSet to the server component, bind the matching client-side TDataSet, the framework keeps them in sync.
uses
sgcWebSocket, sgcWebSocket_Protocol_Dataset_Server,
sgcWebSocket_Protocol_Dataset_Client;
// --- Server: bind a server dataset and broadcast changes -------
WSPServer_Dataset := TsgcWSPServer_Dataset.Create(nil);
WSPServer_Dataset.Server := WSServer;
WSPServer_Dataset.Dataset := DMQuotes.cdsQuotes;
// --- Client: bind a local dataset to receive the snapshot + diffs -----
WSPClient_Dataset := TsgcWSPClient_Dataset.Create(nil);
WSPClient_Dataset.Client := WSClient;
WSPClient_Dataset.Dataset := DMQuotes.cdsQuotes;
WSClient.Active := True;
13 published properties, 14 methods, 25 events — pulled from the component reference.
Published properties: Client, Broker, Guid.
Published properties: QoS.
Events: OnConnect, OnDisconnect, OnError.
Methods: WriteData.
Published properties: Version.
Properties: DataSet, AutoSubscribe, NotifyUpdates.
Authoritative sources for the protocols this component implements.
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.
| Demo Project — Demos\Protocols\Dataset Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below. | Open | |
| Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only. | Open | |
| User Manual (PDF) Comprehensive manual covering every component in the library. | Open |