Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.term.on('close', () => {
SSHUtils.endSocket(socket);
socket.close();
});
this.term.on('resize', () => {
close(){
SSHUtils.endSocket(this.__socket);
this.term.clearCursorBlinkingInterval();
this.term.removeAllListeners('data');
this.term.removeAllListeners('close');
this.term.destroy();
$(window).off("resize", this.resizeListener);
}