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();