Compare commits

..

No commits in common. "c826f04a13e35109e79ee740c90f09e4cf32892b" and "0c53c1e627754019058e619f55b1f9dd4e04ae67" have entirely different histories.

View File

@ -128,16 +128,6 @@ export function ActionScreen () {
console.log(`Action State: ${actionState}`); console.log(`Action State: ${actionState}`);
}, [actionState]); }, [actionState]);
useEffect(() => {
let interval= 0;
if (readyState == ReadyState.OPEN) {
interval = setInterval(() => {
sendMessage(ser(createPacket("ping", {})))
}, 5000)
}
return () => clearInterval(interval)
}, [readyState, sendMessage]);
useEffect(() => { useEffect(() => {
handleMessage(lastMessage) handleMessage(lastMessage)
setUpdateScreen(v => ++v) setUpdateScreen(v => ++v)