add debug stuff for websocket connection
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
90aebf681a
commit
a71bad7f96
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ Teacher: Good job! How about Magic – something special and powerful.
|
||||||
};
|
};
|
||||||
|
|
||||||
ws.onerror = (err) => console.error("WebSocket error", err);
|
ws.onerror = (err) => console.error("WebSocket error", err);
|
||||||
ws.onclose = () => {
|
ws.onclose = (e) => {
|
||||||
console.log("WebSocket closed");
|
console.warn("WebSocket closed", e.code, e.reason);
|
||||||
wsRef.current = null;
|
wsRef.current = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue