Calling a Web Service on PubNub Presence Events

When using PubNub Presence, is it possible to provide an HTTP callback that PubNub calls when a user joins or leaves a channel? In my case, I want to name the cloud function Parse.com. To clarify: I don't want to call the function on the client, but the PubNub.com servers will take care of that.

+3


source to share


1 answer


Web service invocation on PubNub presence events

PubNub offers an "HTTP callback" generated on the PubNub.com servers. You must ask your account manager to enable it for you; send an email to support@pubnub.com to enable. Set the settings and . You need to configure the dev / prod key pair to point to WebHook URLs in different environments. "Presence Callback Active"

"Presence Callback Inactive"

The HTTP callback URL that is triggered when the channel becomes active .



Webhooks are now supported for all presence events: merge, exit, timeout and state change, and active and inactive channel events.

For a complete explanation, please read fooobar.com/questions/2151527 / ... .

+1


source







All Articles