socket.io compatibility fix