remove some socket io transports

This commit is contained in:
Ali Asaria 2011-05-29 17:32:57 -04:00
parent 8ed0fc98e5
commit 99cdfec264

View file

@ -68,9 +68,14 @@ app.post('/edit-column', function(req, res) {
app.listen(process.argv[2]);
//I limit the number of potential transports because xhr was causing trouble
//with frequent disconnects
var socketio_options = {
transports: ['websocket', 'flashsocket', 'htmlfile', 'jsonp-polling']
};
// socket.io SETUP
var socket = io.listen(app);
var socket = io.listen(app, socketio_options);
socket.on('connection', function(client){
// new client is here!
//console.dir(client.request.headers);