$session->topologySubscribe( )
The topologySubscribe() function subscribes to notifications of topology updates.
The subscription/observer mechanism is described in detail in “Event subscription” on page 22. API subscriptions topology subscriptions may be reversed by using topologyUnsubscribe().