{"size": 431, "ext": "js", "max_stars_repo_path": "app/node_modules/node-mysql/node_modules/mysql/lib/protocol/sequences/Quit.js", "max_stars_repo_name": "bijilap/Aurora", "max_stars_repo_stars_event_min_datetime": "2015-09-28T17:00:22.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-03T22:05:25.000Z", "max_issues_repo_path": "app/node_modules/node-mysql/node_modules/mysql/lib/protocol/sequences/Quit.js", "max_issues_repo_name": "bijilap/Aurora", "max_issues_repo_issues_event_min_datetime": "2016-01-14T16:24:08.000Z", "max_issues_repo_issues_event_max_datetime": "2016-04-30T16:18:51.000Z", "max_forks_repo_path": "app/node_modules/node-mysql/node_modules/mysql/lib/protocol/sequences/Quit.js", "max_forks_repo_name": "bijilap/Aurora", "max_forks_repo_forks_event_min_datetime": "2019-06-08T02:01:43.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-06T07:22:22.000Z"}
{"max_stars_count": 168, "max_issues_count": 29, "max_forks_count": 48, "avg_line_length": 22.6842105263, "max_line_length": 51, "alphanum_fraction": 0.656612529}
var Sequence = require('./Sequence');
var Util     = require('util');
var Packets  = require('../packets');

module.exports = Quit;
Util.inherits(Quit, Sequence);
function Quit(options, callback) {
  if (!callback && typeof options === 'function') {
    callback = options;
    options = {};
  }

  Sequence.call(this, options, callback);
}

Quit.prototype.start = function() {
  this.emit('packet', new Packets.ComQuitPacket);
};
