diff --git a/frontend/src/remote.jsx b/frontend/src/remote.jsx index be22028..e18d78c 100644 --- a/frontend/src/remote.jsx +++ b/frontend/src/remote.jsx @@ -45,6 +45,11 @@ export default function RemoteControl() { } }); + socket.on('error', async ( data ) => { + alert(`Error: ${data}`); + setStatus('disconnected'); + }); + return () => { socket.disconnect(); };