Copprhead - Meta -> Timeout: If I set a timeout...
Meta -> Timeout: If I set a timeout value in a path's metadata, will the path's value be set to null if there is no update within <timeout> seconds?
5 Replies
no
currently that is information for the client
it is debatable
but for example, I use that in WilhelmSK to show the user that the data is old
I still get to show the user last value
which in some cases might be usefull?
That's a good way to use it.
If the server would discard the value after the timeout, none of the clients would need any data expiration logic. It would be set/handled in a central place.
I'm asking because KIP has its own TTL/expiration mechanism... so two places with TTL/expiration settings.
Are there any defaults for certain paths? Or does the user have to set the timeouts manually?
I have a WIP, stalled PR for implementing serverside timeout https://github.com/SignalK/signalk-server/pull/1812
GitHub
WIP: Timeout mechanism for values by tkurki · Pull Request #1812 ...
SignalK/signalk#144 (comment)
no defaults. something we could/should add, with ability to edit the values in Admin UI