TsgcWSPServer_PresenceEvents › OnNewChannel

OnNewChannel Event

Fired after a new channel has been accepted and registered.

Syntax

property OnNewChannel: TsgcWSPresenceNewChannel;
// TsgcWSPresenceNewChannel = procedure(Connection: TsgcWSConnection; const aChannel: TsgcWSPresenceChannel) of object

Default Value

Remarks

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).

Example

procedure TForm1.sgcWSPServer_Presence1NewChannel(Connection: TsgcWSConnection;
  const aChannel: TsgcWSPresenceChannel);
begin
  Log('New channel created: ' + aChannel.Name);
end;

Back to Events