amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
53 stars 57 forks source link

Add MQTT-via-websocket transport option (fix #17) & resolve a few other connection issues #18

Closed moqmar closed 4 years ago

moqmar commented 4 years ago

This adds the WithWebSocket transport option to use port 443 instead of port 8883 (also see #17). I couldn't find any open issues for the other problems I had, but I fixed them anyways (once "tls: no renegotiation" and once "connect got error EOF").

amenzhinsky commented 4 years ago

Thanks for the contribution, I've just pushed a small change to adapt this feature in the client https://github.com/amenzhinsky/iothub/commit/2eeefa044fa89b27bb23be3acb63868a3cdbbf8a