TsgcWSPClient_PresenceEvents › OnErrorMemberChannel

OnErrorMemberChannel Event

Fires when a subscription or member-related operation fails on the server.

Syntax

property OnErrorMemberChannel: TsgcWSPresenceMemberChannelErrorEvent;
// TsgcWSPresenceMemberChannelErrorEvent = procedure(Connection: TsgcWSConnection; const aError: TsgcWSPresenceError; const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember) of object

Default Value

Remarks

Fires when the Presence server rejects a member-related request such as Subscribe, UnSubscribe, Invite or GetMembers (for example because the channel does not exist or the caller is not authorized). aError carries Code and Text, aChannel and aMember identify the target of the failed operation.

Example

procedure TForm1.oPresenceErrorMemberChannel(Connection: TsgcWSConnection;
  const aError: TsgcWSPresenceError; const aChannel: TsgcWSPresenceChannel;
  const aMember: TsgcWSPresenceMember);
begin
  Memo1.Lines.Add(Format('Error %d on %s: %s',
    [aError.Code, aChannel.Name, aError.Text]));
end;

Back to Events