Dispose of attach addon event listeners

This commit is contained in:
Daniel Imms
2018-06-21 10:39:52 +10:00
parent 9293616f02
commit 5adf962eb5
2 changed files with 23 additions and 5 deletions
+5 -1
View File
@@ -5,9 +5,13 @@
* Implements the attach method, that attaches the terminal to a WebSocket stream.
*/
import { Terminal } from 'xterm';
import { Terminal, IDisposable } from 'xterm';
export interface IAttachAddonTerminal extends Terminal {
_core: {
register<T extends IDisposable>(d: T): void;
};
__socket?: WebSocket;
__attachSocketBuffer?: string;