Correctly switching between polling/websockets
authorDarren <darren@darrenwhitlen.com>
Tue, 17 Jun 2014 14:06:24 +0000 (15:06 +0100)
committerDarren <darren@darrenwhitlen.com>
Tue, 17 Jun 2014 14:06:24 +0000 (15:06 +0100)
client/src/models/gateway.js

index 1eddbdee0889609c426b6924834be8e3438ba33d..01f92e8f013ef954b4559f61f1ba263abd4f9c38 100644 (file)
@@ -39,7 +39,7 @@ _kiwi.model.Gateway = function () {
         this.set('kiwi_server', _kiwi.app.kiwi_server);\r
 \r
         this.socket = new EngineioTools.ReconnectingSocket(this.get('kiwi_server'), {\r
-            transports: _kiwi.app.server_settings.transports || ['websocket', 'polling'],\r
+            transports: _kiwi.app.server_settings.transports || ['polling', 'websocket'],\r
             path: _kiwi.app.get('base_path') + '/transport',\r
             reconnect_max_attempts: 5,\r
             reconnect_delay: 2000\r