Quit.js 314 B

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