Closed zsombix closed 3 years ago
Hi @zsombix as far as I remember the module transport was a simple copy-paste-replace of the base transport, probably WS support was added later but wasn't implemented for modules.
Would you issue a PR?
Yes I would add it with a PR. Probably not today 😃 .
Hello,
I've noticed that the ModuleTransport does not allow for MQTT over websocket like Transport implementation in the mqtt package:
https://github.com/amenzhinsky/iothub/blob/0dae904c631b9bb6f71b3327125a08352622c560/iotdevice/transport/mqtt/module_mqtt.go#L64
https://github.com/amenzhinsky/iothub/blob/0dae904c631b9bb6f71b3327125a08352622c560/iotdevice/transport/mqtt/mqtt.go#L130
Was that intentional? If there was no reason, like it's not supported, I would add it to ModuleTransport.