messages: Get all messages
This is a method of the Session class in the session module.
def messages(&self) -> &[SessionMessage]