This method of the Connection class is called after a connection starts.
public void addOnConnectComplete(ConnectionEventHandler handler);