Permalink
Browse files

enable websockets with 2000ms timeout for switching to polling

  • Loading branch information...
bobrik committed Aug 14, 2012
1 parent b85916b commit 03e63a9e27172327ed98d6ba8b01e16ddda2c81e
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/index.html
View
@@ -354,7 +354,8 @@ <h3>Settings</h3>
})();
var socket = io.connect(document.location.hostname, {
- transports: ['xhr-polling'] // bad, bad nginx!
+ "transports" : ['websocket', 'xhr-polling'], // bad, bad nginx!
+ "connect timeout" : 2000 // timeout for switching from websocket to xhr-polling
});
socket.on("logs", function(data) {

0 comments on commit 03e63a9

Please sign in to comment.