This PR allows the application to be accessed via https by testing the protocol being used as https: and then setting the web socket scheme to wss instead of ws.
For example, I have an nginx server in front of my tplink-energy-monitor app. I was receiving Console errors like this:
This PR allows the application to be accessed via https by testing the protocol being used as
https:
and then setting the web socket scheme towss
instead ofws
.For example, I have an nginx server in front of my tplink-energy-monitor app. I was receiving Console errors like this: