{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/73","repository_url":"https://api.github.com/repos/w3c/wot-scripting-api","labels_url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/73/comments","events_url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/73/events","html_url":"https://github.com/w3c/wot-scripting-api/issues/73","id":268323041,"number":73,"title":"onObserve() cannot be used for both Property change notifications and Event notifications -- and should be removed alltogether","user":{"login":"mkovatsc","id":664090,"avatar_url":"https://avatars0.githubusercontent.com/u/664090?v=4","gravatar_id":"","url":"https://api.github.com/users/mkovatsc","html_url":"https://github.com/mkovatsc","followers_url":"https://api.github.com/users/mkovatsc/followers","following_url":"https://api.github.com/users/mkovatsc/following{/other_user}","gists_url":"https://api.github.com/users/mkovatsc/gists{/gist_id}","starred_url":"https://api.github.com/users/mkovatsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkovatsc/subscriptions","organizations_url":"https://api.github.com/users/mkovatsc/orgs","repos_url":"https://api.github.com/users/mkovatsc/repos","events_url":"https://api.github.com/users/mkovatsc/events{/privacy}","received_events_url":"https://api.github.com/users/mkovatsc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-25T09:15:43Z","updated_at":"2017-10-25T09:55:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"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).\r\n\r\nonObserve() 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.\r\n\r\nSimilarly, 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."},"comment":{"url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/comments/339278110","html_url":"https://github.com/w3c/wot-scripting-api/issues/73#issuecomment-339278110","issue_url":"https://api.github.com/repos/w3c/wot-scripting-api/issues/73","id":339278110,"user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars3.githubusercontent.com/u/996058?v=4","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T09:55:28Z","updated_at":"2017-10-25T09:55:28Z","author_association":"CONTRIBUTOR","body":"`onObserve()` is an application defined handler for observe requests, not to be confused with event handling. Please read the [text](https://w3c.github.io/wot-scripting-api/#the-onobserve-method). \r\nScripts do need to define a handler for requests in ExposedThing, including observe requests for everything that emits an event on the ConsumerThing counterpart:\r\n- when a property value has changed\r\n- when an action was invoked\r\n- when a TD is changed.\r\n\r\nDo you want to drop this feature? \r\n"}}
{"actor":{"display_login":"zolkis"}}