Object -
websub :
IntentVerificationRequest
Object representing an intent verification request received.
Methods
Builds the response for the request, verifying intention to subscribe, if the topic matches that expected.
Builds the response for the request, verifying intention to unsubscribe, if the topic matches that expected.
Fields
- mode string
-
The mode specified in the intent verification request, subscription or unsubscription
- topic string
-
The topic for which intent is verified to subscribe/unsubscribe
- challenge string
-
The challenge to be echoed to verify intent to subscribe/unsubscribe
- leaseSeconds int 0
-
The lease seconds period for which a subscription will be active if intent verification is being done for subscription
- request Request BLangTypeInit: new null ([])
-
The HTTP request received for intent verification
Builds the response for the request, verifying intention to subscribe, if the topic matches that expected.
Parameters
- expectedTopic string
-
The topic for which subscription should be accepted
-
Return Type
(Response) http:Response
The response to the hub verifying/denying intent to subscribe