explicitly close connection

This commit is contained in:
emerson 2023-07-02 17:21:05 +00:00
parent ccbd3cfc1a
commit e9fb5348d1

View file

@ -6,7 +6,7 @@ export class IRCClient extends Client {
constructor(private socket: Socket , public server: IRCServer) { constructor(private socket: Socket , public server: IRCServer) {
super(server); super(server);
this.socket.on('data', (data) => this.receiveData(data)); this.socket.on('data', (data) => this.receiveData(data));
//this.socket.on('close', (e) => {if (this.user) this.user.handleClientClose(this, e)}); this.socket.on('close', (e) => {this.closeConnection()});
this.server.doLog("New IRCClient connected"); this.server.doLog("New IRCClient connected");
} }