close_statement.js 361 B

123456789101112131415161718
  1. 'use strict';
  2. const Command = require('./command');
  3. const Packets = require('../packets/index.js');
  4. class CloseStatement extends Command {
  5. constructor(id) {
  6. super();
  7. this.id = id;
  8. }
  9. start(packet, connection) {
  10. connection.writePacket(new Packets.CloseStatement(this.id).toPacket(1));
  11. return null;
  12. }
  13. }
  14. module.exports = CloseStatement;