Permalink
Browse files

Provide socket.io options in config.json, and disable flash by default.

  • Loading branch information...
1 parent 5ca1b6d commit 4759d78fefda0a93dfb06348b0224600fc407833 @toolness committed May 2, 2011
Showing with 11 additions and 1 deletion.
  1. +10 −0 config.json
  2. +1 −1 server.js
View
10 config.json
@@ -4,5 +4,15 @@
"dbFile": "moo/Minimal.db",
"socketFile": "moo.sock"
},
+ "io": {
+ "flashPolicyServer": false,
+ "transports": [
+ "websocket",
+ "xhr-multipart",
+ "xhr-polling",
+ "jsonp-polling",
+ "htmlfile"
+ ]
+ },
"port": 7777
}
View
2 server.js
@@ -178,7 +178,7 @@ startMOO(function() {
server = require('http').createServer(staticFileServer);
}
- var httpSocket = io.listen(server);
+ var httpSocket = io.listen(server, config.io);
httpSocket.on('connection', pipeMOOToWeb);
server.listen(config.port);

0 comments on commit 4759d78

Please sign in to comment.