Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
reset pong timeout
  • Loading branch information
alipay404 committed Aug 18, 2023
1 parent 48f4c6e commit 85f7e07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/useWebSocket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export function useWebSocket<Data = any>(
if (!wsRef.value)
return
explicitlyClosed = true
resetHeartbeat()
heartbeatPause?.()
wsRef.value.close(code, reason)
}
Expand Down

0 comments on commit 85f7e07

Please sign in to comment.