فهرست منبع

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

Use wss when creating localhost connection to detect binary support (closes #242)
Solly 11 سال پیش
والد
کامیت
e791b87572
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/websock.js

+ 1 - 1
include/websock.js

@@ -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;
         }
         }