From: Darren Date: Tue, 17 Jun 2014 14:06:24 +0000 (+0100) Subject: Correctly switching between polling/websockets X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=57b0c1715ed30ead3d09bb908cbbdf69e90f610b;p=KiwiIRC.git Correctly switching between polling/websockets --- diff --git a/client/src/models/gateway.js b/client/src/models/gateway.js index 1eddbde..01f92e8 100644 --- a/client/src/models/gateway.js +++ b/client/src/models/gateway.js @@ -39,7 +39,7 @@ _kiwi.model.Gateway = function () { this.set('kiwi_server', _kiwi.app.kiwi_server); this.socket = new EngineioTools.ReconnectingSocket(this.get('kiwi_server'), { - transports: _kiwi.app.server_settings.transports || ['websocket', 'polling'], + transports: _kiwi.app.server_settings.transports || ['polling', 'websocket'], path: _kiwi.app.get('base_path') + '/transport', reconnect_max_attempts: 5, reconnect_delay: 2000