The community forums are in BETA and closed to the public.

How to save last Client state on pubnub sever ?

We want to save the last updated "client state" on pubnub sever for client Identifier. And when we will needed, we should able to get the participants list with their last "client state". How its possible in Pubnub ?

Here's the short answer:

enable Presence add-on

use the State API in your app to set state for each client

when clients come back from being offline, call here-now to get all online user and their state data, and don't forget to set state of the client coming back online

There a bit more details but that is the high level recipe. Ask more questions if you have any.

Login or Signup to post a comment