TsgcWSPClient_PresenceEvents › OnNewChannelMember

OnNewChannelMember Event

Fires when a member subscribes to a channel.

Syntax

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

Default Value

Remarks

Fires on every client already subscribed to aChannel when another member joins it through Subscribe or after accepting an invitation. aMember identifies the joining member, aChannel carries the channel name. Use it to update per-channel member lists in the UI.

Example

procedure TForm1.oPresenceNewChannelMember(Connection: TsgcWSConnection;
  const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember);
begin
  Memo1.Lines.Add(aMember.Name + ' joined ' + aChannel.Name);
end;

Back to Events