Thanks to visit codestin.com
Credit goes to github.com

Skip to content

useWebSocket - Autoreconnect after heartbeat pong timeout doesn't work anymore #4310

@chrisnormand

Description

@chrisnormand

Describe the bug

As the pongtimeout close the websocket, the recently introduced test on onclose (l.234): ws === wsRef.value is false and the reconnect code is skipped.

Reproduction

/

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
    Memory: 11.33 GB / 31.81 GB
  Binaries:
    Node: 22.7.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\node_modules\.bin\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.3 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.46)
    Internet Explorer: 11.0.26100.1882

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions