Move the tty-receiver frontend inside a folder

pull/14/merge
Vasile Popescu 6 years ago
parent 4a8a806193
commit f8e90e0e04

@ -10,15 +10,6 @@ class App extends Component {
} }
render() { render() {
return (<div> </div>); return (<div> </div>);
return (
<MuiThemePro>
<TextField
hintText="Password Field"
floatingLabelText="Password"
type="password"
/>
</MuiThemePro>
);
} }
} }
export default App; export default App;

@ -33,12 +33,11 @@ let connection = new WebSocket(wsAddress);
term.open(document.getElementById('terminal'), true); term.open(document.getElementById('terminal'), true);
//term.attach(connection);
term.write("$"); term.write("$");
connection.onclose = function(evt) { connection.onclose = function(evt) {
console.log("Got the WS closed !!"); console.log("Got the WS closed: ", evt);
term.write("disconnected"); term.write("disconnected");
} }
Loading…
Cancel
Save