Spark.publish() Help?


I am having trouble understanding the third argument in the function above “60”. I have searched for the info and found that it is the time the function should take. Can someone expand on this or provide a link? Thanks in advance.


This is the so called “time to live” for this event (not how long the fn should take).

AFAIK it’s not yet actually used, but is intended to support defered subscriptions.
When a subscribing device is offline at the time of the event, the event “notification/message” will hang around for TTL seconds to be seen by a subscribier that comes along later during this periode.

Does this make sense for you?

1 Like

Yes, thanks!

1 Like