doing terrible things to socket.io client