Introduction
Tutorials
How-to Guides
Reference
Explanation
API Reference
process_messages() sets is_exiting and fires disconnect_event on a disconnect event.