Skip to content

Commit

Permalink
feat: Remove useless message type in Terminal Interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
seung-00 committed Nov 4, 2024
1 parent 3575a3c commit 886ad7c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public class TerminalService {

private LinkedBlockingQueue<String> commandQueue = new LinkedBlockingQueue<>();

public void onTerminalInit() {
LOGGER.info("onTerminalInit");
}

public void onTerminalReady() {
TerminalService.startThread(() -> {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ public void onWebSocketText(String message) {
if (messageMap.containsKey("type")) {
String type = messageMap.get("type");
switch (type) {
case "TERMINAL_INIT":
terminalService.onTerminalInit();
this.noteId = messageMap.get("noteId");
this.paragraphId = messageMap.get("paragraphId");
terminalManager.onWebSocketConnect(noteId, paragraphId);
break;
case "TERMINAL_READY":
terminalService.onTerminalReady();
this.noteId = messageMap.get("noteId");
Expand Down
6 changes: 0 additions & 6 deletions shell/src/main/resources/html/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ function action(type, data) {
}

let app = {
onTerminalInit() {
// alert("TERMINAL_INIT");
ws.send(action("TERMINAL_INIT", {
noteId, paragraphId
}));
},
onCommand(command) {
ws.send(action("TERMINAL_COMMAND", {
command
Expand Down

0 comments on commit 886ad7c

Please sign in to comment.