Compare commits
No commits in common. "c826f04a13e35109e79ee740c90f09e4cf32892b" and "0c53c1e627754019058e619f55b1f9dd4e04ae67" have entirely different histories.
c826f04a13
...
0c53c1e627
|
|
@ -128,16 +128,6 @@ export function ActionScreen () {
|
|||
console.log(`Action State: ${actionState}`);
|
||||
}, [actionState]);
|
||||
|
||||
useEffect(() => {
|
||||
let interval= 0;
|
||||
if (readyState == ReadyState.OPEN) {
|
||||
interval = setInterval(() => {
|
||||
sendMessage(ser(createPacket("ping", {})))
|
||||
}, 5000)
|
||||
}
|
||||
return () => clearInterval(interval)
|
||||
}, [readyState, sendMessage]);
|
||||
|
||||
useEffect(() => {
|
||||
handleMessage(lastMessage)
|
||||
setUpdateScreen(v => ++v)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user