|
|
@@ -44,6 +44,7 @@ function connectSSH() {
|
|
|
sshWS = new WebSocket(
|
|
|
"ws://" + location.host + "/api/ssh/ws"
|
|
|
);
|
|
|
+ sshWS.binaryType = "arraybuffer";
|
|
|
|
|
|
sshWS.onopen = () => {
|
|
|
resizeSSH();
|
|
|
@@ -51,7 +52,7 @@ function connectSSH() {
|
|
|
};
|
|
|
|
|
|
sshWS.onmessage = e => {
|
|
|
- sshTerm?.write(e.data);
|
|
|
+ sshTerm?.write(new Uint8Array(e.data));
|
|
|
};
|
|
|
|
|
|
sshWS.onclose = () => {
|