Events

View as Markdown

The PubSub.Client object emits the events listed below. You can work with these events using the following methods:

Events

message

  • message(message)

A new message has been received.

message
PubSubMessage<PubSubMessageContract>Required

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.