Changed to work with socket.io 0.9