code: def handle_channel_disconnected(self):
          
          for namespace in self.app_namespaces:
              if namespace in self._handlers:
                  self._handlers[namespace].channel_disconnected()
  
          self.app_namespaces = []
          self.destination_id = None
          self.session_id = None
docs: Handles a channel being disconnected.