update for socket.io 1.x