Initial commit of antigravity2 project

This commit is contained in:
Danial HB
2026-06-11 22:52:58 +07:00
commit de35383342
3016 changed files with 484480 additions and 0 deletions
@@ -0,0 +1,29 @@
'use strict';
const Command = require('./command');
const Packets = require('../packets/index.js');
class ResetConnection extends Command {
constructor(callback) {
super();
this.onResult = callback;
}
start(packet, connection) {
const req = new Packets.ResetConnection();
connection.writePacket(req.toPacket());
return ResetConnection.prototype.resetConnectionResponse;
}
resetConnectionResponse(packet, connection) {
if (connection._statements) {
connection._statements.clear();
}
if (this.onResult) {
process.nextTick(this.onResult.bind(this, null));
}
return null;
}
}
module.exports = ResetConnection;