Skip to content

Commit

Permalink
fix astro check
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa42 committed Nov 10, 2024
1 parent dfde4bb commit 4a155d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/scripts/client/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ export class Session {
private readonly terminal: Terminal;
private readonly fitAddon: FitAddon;
private readonly relayConnection: RelayConnection;
private readonly terminalConnection: TerminalConnection;

constructor(url: string, element: HTMLElement) {
this.socket = new WebSocket(url);
this.terminal = new Terminal();
this.fitAddon = new FitAddon();
this.initTerminal(element);
this.relayConnection = new RelayConnection(this.socket, this.terminal);
this.terminalConnection = new TerminalConnection(this.relayConnection, this.terminal, this.fitAddon);
new TerminalConnection(this.relayConnection, this.terminal, this.fitAddon);
}

private initTerminal(element: HTMLElement) {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/scripts/client/TerminalConnection.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type { Terminal } from "@xterm/xterm";
import type { RelayConnection } from "./RelayConnection.ts";
import { debounce } from "lodash";
import type { FitAddon } from "@xterm/addon-fit";

export class TerminalConnection {
constructor(
private readonly relayConnection: RelayConnection,
private readonly terminal: Terminal,
private readonly fitAddon,
private readonly fitAddon: FitAddon,
) {
this.registerEventListeners();
}
Expand Down

0 comments on commit 4a155d0

Please sign in to comment.