Demonstrates how to handle the events that are raised when connections connect, reconnect and disconnect from the Hub API.