respect shouldReconnect immediately

This commit is contained in:
nvms 2024-09-06 21:37:49 -04:00
parent 0ecaaddef4
commit af47133077
3 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,6 @@
"types": "module",
"typings": "./dist/index.d.ts",
"dependencies": {
"@prsm/keepalive-ws": "^0.3.7"
"@prsm/keepalive-ws": "^0.3.8"
}
}

View File

@ -113,7 +113,7 @@ export class KeepAliveClient extends EventTarget {
}
private async reconnect() {
if (this.isReconnecting) {
if (!this.options.shouldReconnect || this.isReconnecting) {
return;
}