Failed to call a websocket send function on beforeunload event when page closes

前端 未结 0 945
太阳男子
太阳男子 2021-02-02 07:44

I\'m trying to use this piece of code to send a websocket message to the back-end when a page is closed.

  useEffect(()=>         


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