diff --git a/frontend/src/app.js b/frontend/tty-receiver/app.js similarity index 57% rename from frontend/src/app.js rename to frontend/tty-receiver/app.js index b4250c2..db80e8a 100644 --- a/frontend/src/app.js +++ b/frontend/tty-receiver/app.js @@ -10,15 +10,6 @@ class App extends Component { } render() { return (
); - return ( - - - - ); } } export default App; \ No newline at end of file diff --git a/frontend/src/base64.js b/frontend/tty-receiver/base64.js similarity index 100% rename from frontend/src/base64.js rename to frontend/tty-receiver/base64.js diff --git a/frontend/src/main.js b/frontend/tty-receiver/main.js similarity index 95% rename from frontend/src/main.js rename to frontend/tty-receiver/main.js index 0f9e4d1..369f231 100644 --- a/frontend/src/main.js +++ b/frontend/tty-receiver/main.js @@ -33,12 +33,11 @@ let connection = new WebSocket(wsAddress); term.open(document.getElementById('terminal'), true); -//term.attach(connection); term.write("$"); connection.onclose = function(evt) { - console.log("Got the WS closed !!"); + console.log("Got the WS closed: ", evt); term.write("disconnected"); }