Problems with Heisha monitor console
Hi, i want to use the Heisha monitor console. On the local network (open with the direct IP) it works, but over nginx (Reverse-Proxy) over https it do not working. It seems to be use websocket, at this point (in HeishaMon/HeishaMon/htmlcode.h)
static const char websocketJS[] PROGMEM = "";
And i think this should be replaced
oWebsocket = new WebSocket("ws://" + location.host + ":80/ws");"
in
oWebsocket = new WebSocket(((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.host + "/ws");
i think the MozWebSocket is old? And all newer (Firefox Versions) should use WebSocket...?
This is not tested yet, is only suggestion from me.
I would welcome the test