mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Better exception handling in the websocket server.
This commit is contained in:
parent
7ab7d342d5
commit
0b74fdd5ab
3 changed files with 53 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue