Skip to content

Commit

Permalink
chore: set ws binaryType
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Aug 13, 2024
1 parent c6fb319 commit fda0dad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resource/template/dashboard-default/terminal.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
cursorBlink: true,
});
const socket = new WebSocket((window.location.protocol == 'https:' ? 'wss' : 'ws') + '://' + window.location.host + '/terminal/' + '{{.SessionID}}');
socket.binaryType = 'arraybuffer';

const trzszAddon = new TrzszAddon(socket);
term.loadAddon(trzszAddon);
const fitAddon = new FitAddon.FitAddon();
Expand Down

0 comments on commit fda0dad

Please sign in to comment.