compatibility with socket.io 1.0