-
Notifications
You must be signed in to change notification settings - Fork 28
[Use-case] WoT in the Browser #566
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
The main problem with "WoT in the browser" is getting the native dependencies linked in the browsers. That will very likely not happen. Also, we cannot assume the existence of local services/protocols and workers. The only viable "WoT in the browser" option is using HTTPS. That has no effect on the Scripting API shape. But it does affect implementations, therefore the specification. |
*and websockets (and mqtt/coap over websockes ).
I agree it does not change that much from our point of view. |
Scripting API 19/02/2025:
|
The The Since no browser vendor has expressed an interest in natively implementing the Scripting API, I continue to hold the view that it could just be a JavaScript library (for both client-side JavaScript in browsers, and Node.js where more protocols can be supported), as opposed to a web standard. If that library became wildly popular with web developers then it's possible browser vendors would eventually consider some kind of native WoT features (that's how we got features like query selectors and web components in browsers), but until then I think "WoT in the Browser" is at best a re-useable JavaScript library. * We consume all of these protocols using client-side JavaScript in the web front end of WebThings Gateway, though not using the Scripting API. |
BTW, there is a slightly different use case for WoT in the browser that I'm interested in, which is using WoT as a mechanism for client-side JavaScript in web pages to access local hardware capabilities, but I don't think that's what is being talked about here and is really orthogonal to whether the Scripting API is natively implemented in a web browser. |
Scripting API call 05/03/2025:
In particular, we are aligned with this statement. |
Originally posted by @mmccool in #3
The text was updated successfully, but these errors were encountered: