code: async def stop(self):
          
  
          if self._connection_task is None:
              return
  
          try:
              await self._connection_task.stop()
          finally:
              self._con = None
              self._connection_task = None
              self._manager.clear()
docs: Stop this websocket client and disconnect from the server.
  
          This method is idempotent and may be called multiple times.  If called
          when there is no active connection, it will simply return.