TsgcWSPServer_Presence › Events › OnNewChannelMember
Fired after a member has successfully joined a channel.
property OnNewChannelMember: TsgcWSPresenceNewMemberChannelEvent;
// TsgcWSPresenceNewMemberChannelEvent = procedure(Connection: TsgcWSConnection; const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember) of object
—
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.
procedure TForm1.sgcWSPServer_Presence1NewChannelMember(Connection: TsgcWSConnection;
const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember);
begin
Log('Member ' + aMember.Name + ' joined channel ' + aChannel.Name);
end;