The restore
property when initializing PubNub enables the subscribed client to reconnect with the last messages timetoken, for example, when navigating across different pages of a website. That setting is useful in the event that the client abruptly exits and is then restarted.
For more information please check: Restore Channel Subscription.