TsgcWSPServer_sgcProperties › Server

Server Property

WebSocket server component used as transport for the sgc subprotocol.

Syntax

property Server: TsgcWSComponent_Server read FServer write SetServer;

Default Value

Remarks

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.

Example

oProtocol := TsgcWSPServer_sgc.Create(nil);
oProtocol.Server := sgcWebSocketServer1;
sgcWebSocketServer1.Active := True;

Back to Properties