$flag = $session->broken( );
The broken() function returns non-zero (TRUE) if the session with the Domain Manager is broken in some way.
A return value of non-zero indicates connection or protocol failures. To continue working with a broken session, the script should call the reattach() function, and then reestablish the event subscription profiles required.