vueuse icon indicating copy to clipboard operation
vueuse copied to clipboard

The useWebSocket API,autoReconnect is not work when the computer after waking up from sleep.

Open XiaoYang943 opened this issue 1 month ago • 0 comments

Describe the bug

Help! The useWebSocket API,autoReconnect is not work when the computer after waking up from sleep. Thanks,good luck.

求助! 使用useWebSocket时,autoReconnect参数没有起作用,当电脑从睡眠状态唤醒后,有的ws重连了,有的没有重连。请教下是什么原因? 谢谢。

Reproduction

null

System Info

win11

"@vueuse/core": "^10.0.2"
"electron": "^13.0.0"
"vue": "^3.2.13"

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guidelines.
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
  • [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
  • [X] The provided reproduction is a minimal reproducible example of the bug.

XiaoYang943 avatar May 10 '24 09:05 XiaoYang943