Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why 'get' unsubscribes from a dataref? #77

Open
cosmolabs-ru opened this issue Sep 1, 2021 · 1 comment
Open

Why 'get' unsubscribes from a dataref? #77

cosmolabs-ru opened this issue Sep 1, 2021 · 1 comment

Comments

@cosmolabs-ru
Copy link

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?

@vranki
Copy link
Owner

vranki commented Sep 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants