From aa50ef80b4436d2de9fc8687a5a1d97ddb8fc304 Mon Sep 17 00:00:00 2001 From: Cesar Canassa Date: Wed, 8 Aug 2012 17:44:12 -0300 Subject: [PATCH] Heroku does not support websockets :( https://devcenter.heroku.com/articles/using-socket-io-with-node-js-on-heroku --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index c09bca116..80ac8a04f 100644 --- a/app.js +++ b/app.js @@ -69,6 +69,8 @@ var io = socketIo.listen(app); io.configure('production', function() { io.enable('browser client etag'); io.set('log level', 1); + io.set("transports", ["xhr-polling"]); + io.set("polling duration", 10); }); io.configure('development', function() {