3 An addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables attaching to a web socket. This addon requires xterm.js v4+.
8 npm install --save xterm-addon-attach
14 import { Terminal } from 'xterm';
15 import { AttachAddon } from 'xterm-addon-attach';
17 const terminal = new Terminal();
18 const attachAddon = new AttachAddon(webSocket);
19 terminal.loadAddon(attachAddon);
22 See the full [API](https://github.com/xtermjs/xterm.js/blob/master/addons/xterm-addon-attach/typings/xterm-addon-attach.d.ts) for more advanced usage.