Better exception handling in the websocket server.

This commit is contained in:
David 2019-03-01 10:56:17 +01:00
commit 0b74fdd5ab
3 changed files with 53 additions and 23 deletions

View file

@ -29,6 +29,8 @@ class App extends Component {
ws.onmessage = event => {
if (event.data === "Success!") {
console.log("Success");
} else if (event.data === "Compiling") {
this.setState({message: "Compiling..."});
} else if (event.data === "Rendering") {
this.setState({message: "Rendering..."});
this.nFrames_new = 0;