Update Socket.hx

trying to connect in the error flow of the connect can bring issues