fixed the socket.io client implementation. successfully connects to remote api server now