parameters: (self, event: Event)
docstring: Callback for when a remote peer initiates the closing of
          a session.
  
          :param event: The underlying event object. Use this to obtain further
              information on the event.
docstring_summary: Callback for when a remote peer initiates the closing of
          a session.
docstring_tokens: Callback for when a remote peer initiates the closing of a session .
function: def on_session_closing(self, event: Event) -> None:
          """
          Callback for when a remote peer initiates the closing of
          a session.
  
          :param event: The underlying event object. Use this to obtain further
              information on the event.
          """
          if self.delegate is not None:
              _dispatch(self.delegate, 'on_session_closing', event)
          elif self.peer_close_is_error:
              self.on_session_error(event)
function_tokens: def on_session_closing ( self , event : Event ) -> None : if self . delegate is not None : _dispatch ( self . delegate , 'on_session_closing' , event ) elif self . peer_close_is_error : self . on_session_error ( event )