@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/lib/index.esm.js
CHANGED
|
@@ -6904,7 +6904,14 @@ class Connection {
|
|
|
6904
6904
|
this._rpcWebSocketIdleTimeout = setTimeout(() => {
|
|
6905
6905
|
this._rpcWebSocketIdleTimeout = null;
|
|
6906
6906
|
|
|
6907
|
-
|
|
6907
|
+
try {
|
|
6908
|
+
this._rpcWebSocket.close();
|
|
6909
|
+
} catch (err) {
|
|
6910
|
+
// swallow error if socket has already been closed.
|
|
6911
|
+
if (err instanceof Error) {
|
|
6912
|
+
console.log(`Error when closing socket connection: ${err.message}`);
|
|
6913
|
+
}
|
|
6914
|
+
}
|
|
6908
6915
|
}, 500);
|
|
6909
6916
|
}
|
|
6910
6917
|
|