sets connection.state to connected