The PubSub.Client object emits the events listed below. You can work with these events using the following methods:
Subscribe to an event
Subscribe to an event once
Unsubscribe from an event
Remove all event listeners
message)A new message has been received.
The received message. See PubSubMessage for more details.
The session is going to expire. Use the updateToken method to refresh your token.