You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the W3C WoT Working Group's conclusion in w3c/wot-thing-description#878 is that it's OK to have a single top level form for a WebSocket endpoint, with no op member.
This means that if we want to we can change the current top level link for WebSocket endpoints exposed by the gateway:
think the W3C WoT Working Group's conclusion in w3c/wot-thing-description#878 is that it's OK to have a single top level form for a WebSocket endpoint, with no op member.
Forms are mandatory for all interaction affordances
The op member is considered a mandatory (with defaults) of all forms
A top level form is limited to a finite set of operation types which only includes meta operations
The upshot of this is that we either need to:
Add a form to every individual interaction affordance which specifies the same WebSocket URL but different op values
Leave WebSocket endpoints as links rather than forms
The former creates a lot of redundancy and duplication of metadata and there isn't a clear mapping of operations onto the current Web Thing WebSocket sub-protocol.
The latter is much simpler but is unlikely to be understood by third party WoT consumers.
I'm tempted to leave them as links for now, and switch to forms once the Web Thing Protocol Community Group has a W3C version of the WebSocket subprotocol which better maps onto the set of WoT operations and can ultimately be formally registered as a WebSocket subprotocol with IANA.
I think the W3C WoT Working Group's conclusion in w3c/wot-thing-description#878 is that it's OK to have a single top level form for a WebSocket endpoint, with no op member.
This means that if we want to we can change the current top level link for WebSocket endpoints exposed by the gateway:
into a form:
The text was updated successfully, but these errors were encountered: