-
Notifications
You must be signed in to change notification settings - Fork 22
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
Multiple things per WebSocket #46
Comments
I agree it should be possible to have multiple things per WebSocket, as you say we just need to provide a thing ID (URI) in each message to indicate which thing it refers to. |
I would like to bump this idea. When implementing the API using the arduino API's for the ESP32 I have encountered some challenges:
I will put some comments in "Implement a single Websocket endpoint for things #947" as well. |
Proposal: Add an id field to WebSocket messages whose value is a URI identifying the thing the message relates to.
We also need to figure out how to expose the WebSocket endpoint as currently we do this in the Perhaps if there is a Gateway capability the Thing Description for the gateway itself can have a top level |
Note that the W3C spec already has an id member for a Thing which is a URI identifying the Thing. This can optionally be the URL of the Thing Description. See also: #29 |
As per the meeting today, this should come with a section or equivalent note that opening a websocket on This could be considered part of a Gateway capability |
Fix WebThingsIO#46 Mirrors current gateway implementation. Also documents optional addition of `id` to WS messages.
When a websocket endpoint is acting as a gateway/adapter to many Web Things, it'd be ideal to have a single websocket connection to the gateway. This could be handled by including a URL in the message indicating what it went to, etc.
The text was updated successfully, but these errors were encountered: