TsgcWSPClient_Presence › Events › OnErrorMemberChannel
Fires when a subscription or member-related operation fails on the server.
property OnErrorMemberChannel: TsgcWSPresenceMemberChannelErrorEvent;
// TsgcWSPresenceMemberChannelErrorEvent = procedure(Connection: TsgcWSConnection; const aError: TsgcWSPresenceError; const aChannel: TsgcWSPresenceChannel; const aMember: TsgcWSPresenceMember) of object
—
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.
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;