TsgcWSPServer_PresenceProperties › Server

Server Property

WebSocket server component hosting the Presence subprotocol.

Syntax

property Server: TsgcWSComponent_Server read FServer write SetServer;

Default Value

Remarks

Link this component to a TsgcWebSocketServer (or TsgcWebSocketHTTPServer) so it can accept incoming connections and dispatch Presence protocol messages. Assign either Server or Broker, but not both; Broker is used when several protocols share the same server.

Example

oPresenceServer := TsgcWSPServer_Presence.Create(nil);
oPresenceServer.Server := sgcWebSocketServer1;

Back to Properties