Messages published to a channel with no subscriber listening get put in a cache, retaining up to the most recent 100 messages. If the client is configured for message catchup, those missed messages can be recovered when the client comes back online an resubscribes to the channel.

See also:

You can read more about message catchup and message storage options.