Skip to content

Commit 6a8a843

Browse files
Josh ThomasJosh Thomas
authored andcommitted
feat(binding-websockets): implement WebSocket client with W3C WoT protocol support
Implements complete WebSocket client binding with support for: - OAuth2 Bearer token authentication via custom headers - WebSocket subprotocol negotiation from Thing Description forms - Configurable protocol mode: W3C Web Thing Protocol or generic WebSocket - All CRUD operations: readResource, writeResource, invokeResource - Full subscription support: subscribeResource and unlinkResource - Proper field naming per W3C spec: input/output for actions, value for properties - Connection management with one persistent connection per Thing - Request/response correlation using message IDs - Timeout handling and error propagation - Multiple subscription handlers per resource This resolves the incomplete stub implementation in ws-client.ts and enables real-world usage of WebSocket bindings with authenticated Things using either W3C Web Thing Protocol or generic WebSocket communication. Signed-off-by: Josh Thomas <> Signed-off-by: Josh Thomas <jthomas@ignite-retail.com>
1 parent 28af07c commit 6a8a843

1 file changed

Lines changed: 659 additions & 25 deletions

File tree

0 commit comments

Comments
 (0)