About the Publisher API

The Publisher API is a backend module for sending messages to channels and resources. Subscribers with suitable permissions receive these messages instantly. Channels and resources are independent, so messages sent to a channel aren't delivered to a resource, and vice versa.

Learn more about the Realtime APIs.

With the Publisher API, you can:

  • Publish messages to a channel or resource.

Before you begin

It's important to note the following points before starting to code:

  • Messages don't persist across tab sessions. Closing the browser tab or window closes the connection.
  • Messages aren't queued. When no subscribers are listening, the message is dropped.

See also

Did this help?