Files
OpenEPaperLink/ESP32_AP-Flasher/data
Pablo Gonzalez 9da9ac9395 Make WebSocket connection protocol dependent (#191)
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.
2024-01-04 19:18:14 +01:00
..
2023-07-29 10:34:56 +02:00
2023-05-23 11:14:48 +02:00