TsgcWSPServer_PresenceEvents › OnNewChannelMember

OnNewChannelMember Event

Fired after a member has successfully joined a channel.

Syntax

property OnNewChannelMember: TsgcWSPresenceNewMemberChannelEvent;
// TsgcWSPresenceNewMemberChannelEvent = procedure(Connection: TsgcWSConnection; const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember) of object

Default Value

Remarks

Raised once OnBeforeNewChannelMember has accepted the member and the subscription has been added. All existing subscribers of the channel are notified about the new member at the same time.

Example

procedure TForm1.sgcWSPServer_Presence1NewChannelMember(Connection: TsgcWSConnection;
  const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember);
begin
  Log('Member ' + aMember.Name + ' joined channel ' + aChannel.Name);
end;

Back to Events