TsgcWSPServer_Dataset › Properties › Server
WebSocket server component used as transport for the Dataset subprotocol.
property Server: TsgcWSComponent_Server read FServer write SetServer;
—
Drop a TsgcWebSocketServer on the form and assign it to this property so the Dataset subprotocol component can receive and send frames through it. The server must be activated on its own component; TsgcWSPServer_Dataset only layers the dataset sync envelope, PubSub and RPC logic on top of the existing transport.
oProtocol := TsgcWSPServer_Dataset.Create(nil);
oProtocol.Server := sgcWebSocketServer1;
sgcWebSocketServer1.Active := True;