TsgcWSPServer_Presence › Events › OnNewChannel
Fired after a new channel has been accepted and registered.
property OnNewChannel: TsgcWSPresenceNewChannel;
// TsgcWSPresenceNewChannel = procedure(Connection: TsgcWSConnection; const aChannel: TsgcWSPresenceChannel) of object
—
Raised after OnBeforeNewChannel returns Accept=True and the channel has been added to the server's channel list. Use this event to customize channel properties (for example to attach private data).
procedure TForm1.sgcWSPServer_Presence1NewChannel(Connection: TsgcWSConnection;
const aChannel: TsgcWSPresenceChannel);
begin
Log('New channel created: ' + aChannel.Name);
end;