lib/Connection.js
function(callback) {
      var t = this;
      callback = callback || function(){};
      var onPong = function() {
        t.off('pong', onPong);
        callback();
      };
      t.on('pong', onPong);
      t.emit('connection:ping');
    }
function(callback) {
      var t = this;
      callback = callback || function(){};
      var onPong = function() {
        t.off('pong', onPong);
        callback();
      };
      t.on('pong', onPong);
      t.emit('connection:ping');
    }
function ( callback ) { var t = this ; callback = callback || function ( ) { } ; var onPong = function ( ) { t . off ( 'pong' , onPong ) ; callback ( ) ; } ; t . on ( 'pong' , onPong ) ; t . emit ( 'connection:ping' ) ; }
Ping a remote connection

@method ping
@param callback {Function(error)} Callback when response is returned
Ping a remote connection