Skip to content
New issue

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

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

Already on GitHub? # to your account

Does SubscriptionMode only apply to STREAM subscriptions? #152

Open
wenovus opened this issue Nov 23, 2021 · 1 comment
Open

Does SubscriptionMode only apply to STREAM subscriptions? #152

wenovus opened this issue Nov 23, 2021 · 1 comment
Labels

Comments

@wenovus
Copy link
Contributor

wenovus commented Nov 23, 2021

enum SubscriptionMode {
  TARGET_DEFINED = 0;  // The target selects the relevant mode for each element.
  ON_CHANGE      = 1;  // The target sends an update on element value change.
  SAMPLE         = 2;  // The target samples values according to the interval.
}

Since the spec only talks about this for STREAM, it appears to me that this is only relevant to STREAM subscriptions, and not ONCE or POLL. Is my understanding correct?

@robshakir
Copy link
Contributor

Yes, I think that is correct, since ONCE will mean all values should be sent now (regardless of how they are updated), and POLL says the same thing, just on a repeated basis, then these appear only relevant to STREAM.

r.

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

No branches or pull requests

2 participants