Update the code for socket.io from 0.0.9 to 1.0.4