-
Notifications
You must be signed in to change notification settings - Fork 80
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
ProtocolClient Interface does not allow to specify the affordance name, if the information is not contained in the Form #1342
Comments
It seems that the Having said that, I wonder what is the best way forward with the following aspects in mind:
Any opinions? |
In kotlin-wot I modified
Thus I didn't have to modify existing bindings, but can override this new method in the WebsocketProtocolClient. But Typescript cannot have default implementations in interfaces or? But I agree a single |
In dart_wot, I actually had a similar problem and solved it (for now) using an additional |
Indeed, we need an object (or AugmentedForm), because the |
The implementation of the ProtocolClient methods in node-wot assume that all the information needed to read a property, invoke an action or subscribe to an event is contained in a Form. See https://github.com/eclipse-thingweb/node-wot/blob/master/packages/core/src/protocol-interfaces.ts#L48
When implementing a websocket binding based on the Webthingprotocol, we saw that this is not the case for all protocols.
We had a long discussion on Discord about it. And in the Webthingprotocol spec the form href will not contain a property name or action name, so we would need to overload ProtocolClient methods with additional versions which also take the names as an input parameter.
The text was updated successfully, but these errors were encountered: