lib/wordpress-client.js
function onceReady(error, methods) {
      this.debug(error ? 'No methods (%d) found, unable to connect to %s.' : 'onceReady: Found %d methods on %s.', ( methods ? methods.length : 0 ), this.get('url'));

      // Set Methods.
      this.set('methods', this.common.trim(methods));

      if (error) {
        this.emit('error', error, this);
      }

      this.emit('connected', error, this);

      // @chainable
      return this;

    }
function onceReady(error, methods) {
      this.debug(error ? 'No methods (%d) found, unable to connect to %s.' : 'onceReady: Found %d methods on %s.', ( methods ? methods.length : 0 ), this.get('url'));

      // Set Methods.
      this.set('methods', this.common.trim(methods));

      if (error) {
        this.emit('error', error, this);
      }

      this.emit('connected', error, this);

      // @chainable
      return this;

    }
function onceReady ( error , methods ) { this . debug ( error ? 'No methods (%d) found, unable to connect to %s.' : 'onceReady: Found %d methods on %s.' , ( methods ? methods . length : 0 ) , this . get ( 'url' ) ) ; // Set Methods. this . set ( 'methods' , this . common . trim ( methods ) ) ; if ( error ) { this . emit ( 'error' , error , this ) ; } this . emit ( 'connected' , error , this ) ; // @chainable return this ; }
Callback for Connection Verification.

@param error
@param methods
@returns {*}
Callback for Connection Verification .