You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Nikos/5835/websocket provider keeps important error message back (#5884)
* Remove internal listener
* Clear ws connection manually
* Emit error for connectFailed instead of close
* Add test
* Add error reason and code, emit close, too
* Add description in error
* Remove connection listeners only on node
* Update changelog
* Check for client instead of connection for removing listener
* Remove console
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -655,5 +655,8 @@ Released with 1.0.0-beta.37 code base.
655
655
- Add optional `hexFormat` param to `getTransaction` and `getBlock` that accepts the value `'hex'` (#5845)
656
656
-`utils.toNumber` and `utils.hexToNumber` can now return the large unsafe numbers as `BigInt`, if `true` was passed to a new optional parameter called `bigIntOnOverflow` (#5845)
657
657
- Updated @types/bn.js dependency to 5.1.1 in web3, web3-core and web3-eth-contract as reason mentioned in #5640 (#5885)
658
+
- Add description to error for failed connection on websocket (#5884)
this.connection._client.removeAllListeners('connectFailed');//Override the internal listeners, so they don't trigger a `close` event. We want to trigger `_onClose` manually with a description.
0 commit comments