Better exception handling in the websocket server.

Former-commit-id: 403eae84b74f76f26b51fdac8930bb9e02ca6e6b
This commit is contained in:
David 2019-03-01 10:56:17 +01:00
commit 2f0d83f9b1
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;