calls the socket to open in reconnect()