Mute websocket errors
This commit is contained in:
parent
668b40d5dd
commit
69efe9ee28
@ -17,7 +17,11 @@ const Client = () => {
|
|||||||
// Send data to server
|
// Send data to server
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!socket) return;
|
if (!socket) return;
|
||||||
socket.send(JSON.stringify(buttonMap));
|
try {
|
||||||
|
socket.send(JSON.stringify(buttonMap));
|
||||||
|
} catch (err: unknown) {
|
||||||
|
|
||||||
|
}
|
||||||
}, [buttonMap, socket]);
|
}, [buttonMap, socket]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user