@solana/web3.js 1.32.1 → 1.32.2
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/lib/index.browser.esm.js +8 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +8 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +8 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +8 -1
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +10 -1
package/package.json
CHANGED
package/src/connection.ts
CHANGED
|
@@ -4110,7 +4110,16 @@ export class Connection {
|
|
|
4110
4110
|
this._rpcWebSocketConnected = false;
|
|
4111
4111
|
this._rpcWebSocketIdleTimeout = setTimeout(() => {
|
|
4112
4112
|
this._rpcWebSocketIdleTimeout = null;
|
|
4113
|
-
|
|
4113
|
+
try {
|
|
4114
|
+
this._rpcWebSocket.close();
|
|
4115
|
+
} catch (err) {
|
|
4116
|
+
// swallow error if socket has already been closed.
|
|
4117
|
+
if (err instanceof Error) {
|
|
4118
|
+
console.log(
|
|
4119
|
+
`Error when closing socket connection: ${err.message}`,
|
|
4120
|
+
);
|
|
4121
|
+
}
|
|
4122
|
+
}
|
|
4114
4123
|
}, 500);
|
|
4115
4124
|
}
|
|
4116
4125
|
return;
|