-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
This issue is for discussing API improvements.
Let's start the discussion on observing functionality on the ConsumedThing interface.
There we have
Observable observe(DOMString name, RequestType requestType);
enum RequestType { "property", "action", "event", "td" };
It allows subscribing and unsubscribing to notifications like:
- property change made by others
- action invoked by others
- any event supported by the target Thing
- changes to the Thing Description (TD) of the Thing.
Note that these could be also modeled with default events on ExposedThing, one being dedicated to 'descriptionchange', one for 'propertychange', one for 'actioninvocation' and then the signature would change to:
Observable observe(DOMString eventName);
but the functionality would be implicit.
I wonder which would be more developer-friendly.
Metadata
Metadata
Assignees
Labels
No labels