0

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.

Matt
  • 14,906
  • 27
  • 99
  • 149
Shaun
  • 11
  • 1

1 Answers1

0

PubNub publish and storing messages

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

enter image description here

Community
  • 1
  • 1
Craig Conover
  • 4,710
  • 34
  • 59