reference icon indicating copy to clipboard operation
reference copied to clipboard

Does `SubscriptionMode` only apply to `STREAM` subscriptions?

Open wenovus opened this issue 4 years ago • 1 comments

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?

wenovus avatar Nov 23 '21 22:11 wenovus

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.

robshakir avatar Nov 24 '21 01:11 robshakir