Dataset Protocol — sgcWebSockets | eSeGeCe

Dataset Protocol

Real-time dataset synchronization across multiple connected clients. Broadcast inserts, updates, and deletes automatically as they happen.

TsgcWSPClient_Dataset / TsgcWSPServer_Dataset

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.

Component class

TsgcWSPClient_Dataset

Protocol

TDataSet sync over a WebSocket channel

Platforms

Windows, macOS, Linux, iOS, Android

Edition

Professional / Enterprise

Drop the component, set a few properties, go

Bind a TDataSet to the server component, bind the matching client-side TDataSet, the framework keeps them in sync.

uses
  sgcWebSocket, sgcWebSocket_Protocols;

// --- 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;

What's inside

13 published properties, 14 methods, 25 events — pulled from the component reference.

Connection

Published properties: Client, Broker, Guid.

Messaging

Published properties: QoS.

Lifecycle

Events: OnConnect, OnDisconnect, OnError.

Advanced

Methods: WriteData.

Diagnostics

Published properties: Version.

Dataset

Properties: DataSet, AutoSubscribe, NotifyUpdates.

Specifications & references

Authoritative sources for the protocols this component implements.

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Demo Project — Demos\02.WebSocket_Protocols\05.DataSet_Quotes_Protocol Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below.
Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only.
User Manual (PDF) Comprehensive manual covering every component in the library.
Best value: All-AccessEvery eSeGeCe product, Premium Support included, from €1,059/year.
See All-Access pricing

Ready to Synchronize Data in Real Time?

Download the free trial and keep datasets in sync across all connected clients.