pub fn ends_the_session(reason: &str) -> bool
Whether a session_error reason says the session itself ended, as opposed to an error about one connection or one message.
session_error