Save data from WebSocket messages only once per 5 seconds

前端 未结 0 1918
无人共我
无人共我 2021-01-30 03:11

I have a simple React component, where I subscribe to WebSocket message in useEffect hook:

  useEffect(() => {
    ws.onmessage = (response) =>         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题