Permalink
Browse files

Real heroku fix

  • Loading branch information...
serkanyersen committed Dec 20, 2011
1 parent 7bf852d commit ba54cb962261bc58daf8f152e458a52d5c4a78b3
Showing with 3 additions and 1 deletion.
  1. +3 −1 server.js
View
@@ -7,7 +7,7 @@ app.listen(process.env.PORT);
var sockets = {};
-if(os.hostname().match('heroku')){
+if(os.hostname().match('heroku') && false){
io.configure(function(){
io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
@@ -44,6 +44,8 @@ io.sockets.on('connection', function(socket) {
list.push(sockets[id].name);
}
list.push(os.hostname());
+ list.push(os.type());
+ list.push(os.platform());
for (id in sockets) {
sockets[id].emit('updateParticipantList', {list: list});
}

0 comments on commit ba54cb9

Please sign in to comment.