TsgcWSPServer_PresenceEvents › OnErrorMemberChannel

OnErrorMemberChannel Event

Fired when a member- or channel-related operation is rejected.

Syntax

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

Default Value

Remarks

Raised whenever the server denies a member/channel request, for example when a member is rejected, a channel cannot be created, a member tries to subscribe to the same channel twice, or requests an unknown channel. aError contains the error code and text.

Example

procedure TForm1.sgcWSPServer_Presence1ErrorMemberChannel(Connection: TsgcWSConnection;
  const aError: TsgcWSPresenceError; const aChannel: TsgcWSPresenceChannel;
  const aMember: TsgcWSPresenceMember);
begin
  Log('#Error: ' + aError.Text);
end;

Back to Events