AngularJS V4 Presence API Reference for Realtime Apps

Here Now

DESCRIPTION

You can obtain information about the current state of a channel including a list of unique user-ids currently subscribed to the channel and the total occupancy count of the channel by calling the hereNow() function in your application.

METHOD(S)

To call Here Now you can use the following method(s) in the AngularJS V4 SDK:

Where Now

DESCRIPTION

You can obtain information about the current list of channels to which a uuid is subscribed to by calling the whereNow function in your application.

 
If the app is killed/crashes and restarted (or the page containing the PubNub instance is refreshed on the browser) within the heartbeat window no timeout event is generated.

METHOD(S)

To call whereNow you can use the following method(s) in the AngularJS V4 SDK:

Pubnub Angular service is a wrapper for PubNub JavaScript SDK that adds a few extra features to simplify Angular integrations:

User State

DESCRIPTION

The state API is used to set/get key/value pairs specific to a subscriber uuid.

State information is supplied as a JSON object of key/value pairs.

METHOD(S)

Send Your Feedback