async def METHOD_NAME(self, register_worker=True):
    """Main loop of connection which keep connection to server alive."""
    self._is_running = True
    while not self._stopped:
        start_time = datetime.datetime.now()
        await self._connection_loop(register_worker)
        delta = datetime.datetime.now() - start_time
        print("Connection loop took {}s".format(str(delta)))
        # Check if was stopped and stop while loop in that case
        if self._stopped:
            break
        if delta.seconds < 60:
            print((
                "Can't connect to server will try in {} seconds."
            ).format(self.retry_time_seconds))
            await asyncio.sleep(self.retry_time_seconds)
    self._is_running = False