web 기본셋팅

This commit is contained in:
2026-06-22 22:17:24 +09:00
parent a195e81dc0
commit 5e61a5de18
2081 changed files with 857581 additions and 2292 deletions
+29
View File
@@ -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;