TsgcWSPClient_PresenceEvents › OnRemoveChannelMember

OnRemoveChannelMember Event

Fires when a member unsubscribes from a channel.

Syntax

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

Default Value

Remarks

Fires on every remaining subscriber of aChannel when a member calls UnSubscribe or leaves the server. Use it to remove aMember from the channel-specific roster you display.

Example

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

Back to Events