TsgcWSPServer_Presence › Properties › Server
WebSocket server component hosting the Presence subprotocol.
property Server: TsgcWSComponent_Server read FServer write SetServer;
—
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.
oPresenceServer := TsgcWSPServer_Presence.Create(nil);
oPresenceServer.Server := sgcWebSocketServer1;