Ping.js 315 B

123456789101112131415
  1. var Sequence = require('./Sequence');
  2. var Util = require('util');
  3. var Packets = require('../packets');
  4. module.exports = Ping;
  5. Util.inherits(Ping, Sequence);
  6. function Ping(callback) {
  7. Sequence.call(this, callback);
  8. }
  9. Ping.prototype.start = function() {
  10. this.emit('packet', new Packets.ComPingPacket);
  11. };