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