ExtPlane icon indicating copy to clipboard operation
ExtPlane copied to clipboard

Why 'get' unsubscribes from a dataref?

Open cosmolabs-ru opened this issue 4 years ago • 1 comments

Thanks a lot for adding 'get' command, it's very useful. But why does it unsubcribe from a dateref? What's the purpose of such behavior? Can I safely use 'sub' repeatedly to periodically fetch values of already subscribed datarefs? Is there any other way to fetch a value by an incoming TCP request?

cosmolabs-ru avatar Sep 01 '21 18:09 cosmolabs-ru

Idea of get is that you can get the value once without subscribing to the dataref. There are some corner cases you might want to do that. If you want repeated updates, you subscribe to the dataref normally. I don't understand any problem with this.

vranki avatar Sep 02 '21 08:09 vranki