mirror of
https://github.com/rad1o/server.git
synced 2026-03-08 02:56:50 +01:00
13 lines
304 B
JavaScript
13 lines
304 B
JavaScript
module.exports = ComQuitPacket;
|
|
function ComQuitPacket(sql) {
|
|
this.command = 0x01;
|
|
}
|
|
|
|
ComQuitPacket.prototype.parse = function parse(parser) {
|
|
this.command = parser.parseUnsignedNumber(1);
|
|
};
|
|
|
|
ComQuitPacket.prototype.write = function write(writer) {
|
|
writer.writeUnsignedNumber(1, this.command);
|
|
};
|