-
Notifications
You must be signed in to change notification settings - Fork 28
onObserve() cannot be used for both Property change notifications and Event notifications -- and should be removed alltogether #73
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
Comments
Do you want to drop this feature? |
The text for
Overall, the issue already starts in I would like to focus first on what is fundamentally required for scripting WoT mashups (cf. PHP vs Jetty). Lets open a bucket for these "maybe nice to have calls" and remember them. Once we have a minimal viable Scripting API, we can still bloat it up. |
Digging in further shows that Events in the Scripting API are not aligned with Events in the TD model. As of now, the TD Interaction Model foresees
This difference should also be reflected in the Scripting API with different calls. Both may make use of the Observer programming pattern. |
That is right, this is work to be done. We track that in issue #68. |
Addressed by #86. |
Property change (or change-of-value/CoV) notifications are fundamentally different from Events that have an identity on their own (e.g., such Events must not be lost while CoV notifications can).
onObserve() should be fully ignored by scripts and completely handled by the WoT Runtime. A possible onNewObserver() shall be kept in implementtion space, i.e., outside standardization for now.
Similarly, there is no need to standardize an onSubscribe() because the user shall not be required to manage this; the WoT Runtime needs to. The user/script only emits Events.
The text was updated successfully, but these errors were encountered: