remove some socket io transports
This commit is contained in:
parent
8ed0fc98e5
commit
99cdfec264
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue