public ClientSocket openIfHeartbeatActive ( ) { if ( _state . isClosed ( ) ) { return null ; } if ( ! _isHeartbeatActive && _isHeartbeatServer ) { return null ; } ClientSocket stream = openRecycle ( ) ; if ( stream != null ) return stream ; return connect ( ) ; }
Open a stream if the target server s heartbeat is active .