Node Upgrading Socket Io 0 9 1 X

Upgrading from 0.9 to 1.x

You can follow the [migration docs][migration-docs] at's website.

Since io.set is gone, in my case, on the server app I had to convert form this:

var io = require('').listen(server);
io.set('log level', 1);
io.set('transports', ['websocket']);

to this:

var options = { 
    serveClient: true, 
    transports: ['websocket']
var io = require('')(server, options);

Logging is now based on debug, so to print only related logging you need to run the app with the following command from terminal:* node index.js

After getting the server migrated, I kept getting the following errors on the client side:


http://localhost:3000/ 400

I solved that by configuring both client and server with the same transport options:


var io = require('')(server, {transports: ['websocket']});


 var io = io( serverUrl, {transports: ['websocket']});