What Happens If I Publish Events To Channel If No Clients Are Subscribed?
By Default, data within Pusher is transient so events and the associated data only exists until it has been delivered to all connected clients. If there are no clients subscribed to that channel that the message has been triggered on then that event is instantly lost.
However, when an event is triggered on a cache channel, Pusher Channels caches this event. Then when a client subscribes to a cache channel, if a cached value exists, it’s sent to the client as the first event on that channel. This behavior helps developers provide the initial state without adding additional logic to fetch it from elsewhere.
Still have questions? Please reach out to our Support team by visiting this page.
PreviousIs It Possible To Schedule Event Sending in My Channels App?NextWhy Do You Require Server Authentication To Use Client Events?
Last updated