From cadca1550b90499831a2dd1c95dd33c5495c9908 Mon Sep 17 00:00:00 2001 From: Marius Tulbure Date: Sat, 17 Oct 2015 16:07:43 +0300 Subject: [PATCH] Fix issue for browser connection --- lib/connection/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection/browser.js b/lib/connection/browser.js index 08ec796e..8290bbc6 100644 --- a/lib/connection/browser.js +++ b/lib/connection/browser.js @@ -34,7 +34,7 @@ BrowserConnection.prototype.setupSocket = function() { socket.onerror = function(error) { // attempt to degrade to ws: after one failed attempt for older Leap Service installations. - if (connection.useSecure() && connection.scheme === 'wss:'){ + if (!connection.useSecure() && connection.scheme === 'wss:'){ connection.scheme = 'ws:'; connection.port = 6437; connection.disconnect();