subscribe to relevant messages
send session data on session end