modified for socket.io 1.1.0
modified for socket.io 1.1.0