mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Better exception handling in the websocket server.
Former-commit-id: 403eae84b74f76f26b51fdac8930bb9e02ca6e6b
This commit is contained in:
parent
5aec702c57
commit
2f0d83f9b1
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