How to I set a TTL
on a published message to a channel?
I have been through the API docs on the website but I cannot seem to find any documentation, only a note for Pubnub APNs.
How to I set a TTL
on a published message to a channel?
I have been through the API docs on the website but I cannot seem to find any documentation, only a note for Pubnub APNs.
You can either store the message you publish or not store it (there is a store_in_history
parameter for publish
API.
If the message is stored, its TTL (retention in storage) will be same as it is for all other messages published in your key set. This setting is in the Storage & Playback add-on for you keys in your PubNub Admin Dashaboard