From f34ca1cd2bfb00bd2219d4a192079ed0f539f912 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 12 Sep 2017 09:19:25 -0700 Subject: [PATCH] Revert "Fixed: some device will get error code [1006] when handshake if protocols is undefined. (#691)" This reverts commit ed32c71d90064b0537fb8753b0d709dbd94788c7. --- channels/static/channels/js/websocketbridge.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/channels/static/channels/js/websocketbridge.js b/channels/static/channels/js/websocketbridge.js index dd4af1a..d7b2845 100644 --- a/channels/static/channels/js/websocketbridge.js +++ b/channels/static/channels/js/websocketbridge.js @@ -115,12 +115,7 @@ var ReconnectingWebsocket = function (url, protocols, options) { var connect = function () { log('connect'); var oldWs = ws; - if (protocols === undefined) { - ws = new config.constructor(url); - } else { - ws = new config.constructor(url, protocols); - } - + ws = new config.constructor(url, protocols); connectingTimeout = setTimeout(function () { log('timeout'); ws.close();