TsgcWSPClient_sgc › Properties › Client
WebSocket client component used as transport for the sgc subprotocol.
property Client: TsgcWSComponent_WSClient read FClient write SetClient;
—
Drop a TsgcWebSocketClient on the form and assign it to this property so the subprotocol component can send and receive frames through it. The connection must be opened on the Client itself; this component only layers the sgc message envelope, PubSub, RPC and QoS logic on top of the existing transport.
oProtocol := TsgcWSPClient_sgc.Create(nil);
oProtocol.Client := sgcWebSocketClient1;
sgcWebSocketClient1.Active := True;