eclipse-thingweb / eclipse-thingweb/node-wot

Support MQTT over websocket

Open
#1,475 1 comment 0 reactions 0 assignees View on GitHub
binding-mqtt core enhancement
Dominant language
TypeScript
Stars
192
Forks
100
Avg merge
3d 2h
Merged PRs (30d)
6

Description

Currently, the client library we are using can connect with websocket. However, we are missing a way to properly either describe it in TD or implement it in core.

To describe, we can:
- `ws` scheme +.`subprotocol: mqtt`
- `mqtt+ws` (not recommended, but we can handle it): other examples coap+ws, modbus+tcp

To implement:
- We lack support to register multiple schemes. We cannot register `mqtt` and `mqtt+ws`
- Currently subprotocol is handled by the main client protocol. So it means that if we go for `ws` URI scheme + `subprotocol : mqtt`, the code handling mqtt should be copied or imported to the `websocket-binding`, which is not the right way forward. Then we need a way to register combos of URI+subprotocol.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.