diff --git a/include/websock.js b/include/websock.js index 01a24c3f..b8cc46f6 100644 --- a/include/websock.js +++ b/include/websock.js @@ -282,7 +282,7 @@ function init(protocols) { // TODO: this sucks, the property should exist on the prototype // but it does not. try { - if (bt && ('binaryType' in (new WebSocket("ws://localhost:17523")))) { + if (bt && ('binaryType' in (new WebSocket("wss://localhost:17523")))) { Util.Info("Detected binaryType support in WebSockets"); wsbt = true; }