Messages are the actual packages of data that get sent to PubNub via the publish() API. PubNub's maximum size for a single message is 32 KiB.


The total number of messages per month are counted as the number of messages published plus the number of messages received either via the subscribe() or the history() API. For instance, if a message is published in a group chat with 5 users, the number of messages = 1 published message + 5 subscribed messages + messages fetched from storage.


Note: Other realtime events like object updates, typing indicators, receipts, and reactions are not counted as messages.