HeishaMon icon indicating copy to clipboard operation
HeishaMon copied to clipboard

Problems with Heisha monitor console

Open MAButz opened this issue 2 years ago • 1 comments

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.

MAButz avatar Mar 08 '23 08:03 MAButz

I would welcome the test

CurlyMoo avatar Apr 03 '23 19:04 CurlyMoo