diff --git a/package.json b/package.json index da36a00..f39ed85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lnmessage", - "version": "0.2.4", + "version": "0.2.5", "description": "Talk to Lightning nodes from your browser", "main": "dist/index.js", "type": "module", diff --git a/src/index.ts b/src/index.ts index 084b127..a6cc871 100644 --- a/src/index.ts +++ b/src/index.ts @@ -195,6 +195,7 @@ class LnMessage { this.socket.onclose = async () => { this._log('error', 'WebSocket is closed at ' + new Date().toISOString()) + this._pingTimeout && clearTimeout(this._pingTimeout) this.connectionStatus$.next('disconnected') this.connected$.next(false) diff --git a/yarn.lock b/yarn.lock index 45e2076..8e711e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -822,9 +822,9 @@ rxjs@^7.5.7: tslib "^2.1.0" semver@^7.3.7: - version "7.3.7" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" - integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" @@ -925,9 +925,9 @@ which@^2.0.1: isexe "^2.0.0" word-wrap@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== wrappy@1: version "1.0.2"