brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
101 stars 6 forks source link

Mixed Content Error for Log Websocket in Console #89

Closed BugRoger closed 3 years ago

BugRoger commented 3 years ago

The console log assumes the hkknx API is being called using a insecure connection.

image

Something like this should do the trick:

        function createSocket() {
            var connectionEstablished = false;
            if (window["WebSocket"]) {
                socket = new WebSocket((window.location.protocol === "https:") ? "wss://" : "ws://") + document.location.host +"/api/system/log");
brutella commented 3 years ago

This should be fixed in the latest pre-release build for version 1.3.0.