@solana/web3.js 1.41.6 → 1.41.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.41.6",
3
+ "version": "1.41.9",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
@@ -129,7 +129,7 @@
129
129
  "sinon": "^13.0.2",
130
130
  "sinon-chai": "^3.7.0",
131
131
  "start-server-and-test": "^1.12.0",
132
- "ts-mocha": "^9.0.2",
132
+ "ts-mocha": "^10.0.0",
133
133
  "ts-node": "^10.0.0",
134
134
  "tslib": "^2.1.0",
135
135
  "typedoc": "^0.22.2",
package/src/connection.ts CHANGED
@@ -4174,6 +4174,7 @@ export class Connection {
4174
4174
  * @internal
4175
4175
  */
4176
4176
  _wsOnError(err: Error) {
4177
+ this._rpcWebSocketConnected = false;
4177
4178
  console.error('ws error:', err.message);
4178
4179
  }
4179
4180
 
@@ -4181,6 +4182,7 @@ export class Connection {
4181
4182
  * @internal
4182
4183
  */
4183
4184
  _wsOnClose(code: number) {
4185
+ this._rpcWebSocketConnected = false;
4184
4186
  this._rpcWebSocketGeneration++;
4185
4187
  if (this._rpcWebSocketHeartbeat) {
4186
4188
  clearInterval(this._rpcWebSocketHeartbeat);