IPWorks MQ 2020 C++ Builder Edition

Questions / Feedback?

SubscriptionRequest Event

This event fires when a subscription request is received.

Syntax

typedef struct {
  String From;
  String Domain;
  bool Accept;
} TipqXMPPSubscriptionRequestEventParams;

typedef void __fastcall (__closure *TipqXMPPSubscriptionRequestEvent)(System::TObject* Sender, TipqXMPPSubscriptionRequestEventParams *e);

__property TipqXMPPSubscriptionRequestEvent OnSubscriptionRequest = { read=FOnSubscriptionRequest, write=FOnSubscriptionRequest };

Remarks

This event fires whenever another XMPP entity requests a subscription to this entity's presence. The XMPP component will parse the requesting entity's Jabber ID into the From and Domain parameters. There is no need to know which resource sent the request, since all instances of the requesting entity's account have access to the same roster.

Accept will initially be false, but setting it to true will cause the XMPP component to allow the remote subscription. Otherwise, the XMPP component will actively deny the subscription request.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 C++ Builder Edition - Version 20.0 [Build 8155]