emqx / emqtt

Erlang MQTT 5.0 Client
https://www.emqx.com
Apache License 2.0
407 stars 168 forks source link

support for websockets with ssl #86

Open picaoao opened 5 years ago

picaoao commented 5 years ago

It is great that you added websocket support. It would be even great if you could add websocket secure (ssl) !

milgner commented 4 years ago

Note that although it's not supported explicitly, since emqtt uses gun for establishing websocket connections, it is my interpretation of the code that it should automatically switch to TLS if one connects to the default port 443: https://github.com/ninenines/gun/blob/f4162604f502bc4e3805c80f303f58acef68614f/src/gun.erl#L895

RyanSept commented 1 year ago

I can confirm this worked for me. Thanks @milgner