Commit e791b875 authored by Solly's avatar Solly

Merge pull request #242 from Medical-Insight/use-wss-for-binary-detect

Use wss when creating localhost connection to detect binary support (closes #242)
parents fb35d50f ec34af8f
...@@ -282,7 +282,7 @@ function init(protocols) { ...@@ -282,7 +282,7 @@ function init(protocols) {
// TODO: this sucks, the property should exist on the prototype // TODO: this sucks, the property should exist on the prototype
// but it does not. // but it does not.
try { 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"); Util.Info("Detected binaryType support in WebSockets");
wsbt = true; wsbt = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment