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