diff --git a/demo/client.ts b/demo/client.ts index affcf64c..f9a6f6ff 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -149,7 +149,14 @@ function createTerminal(): void { } function runRealTerminal(): void { + /** + * The demo defaults to string transport by default. + * To run it with UTF8 binary transport, swap comment on + * the lines below. (Must also be switched in server.js) + */ term.loadAddon(new AttachAddon(socket)); + //term.loadAddon(new AttachAddon(socket, {inputUtf8: true})); + term._initialized = true; }