mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 08:06:46 +01:00
Currently, the connection to WebSockets is hardcoded to the protocol "ws://". If the server is put behind a proxy server (like Nginx) to support "https", the connection to websockets will fail (at least in Firefox) due to insecure protocol. This change checks the current protocol and connects to "wss" if loaded via "https", which makes it work when loaded via proxy.