@solana/web3.js 1.92.3 → 1.93.0

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.
@@ -9,8 +9,7 @@ import { blob } from '@solana/buffer-layout';
9
9
  import { toBigIntLE, toBufferLE } from 'bigint-buffer';
10
10
  import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
11
11
  import RpcClient from 'jayson/lib/client/browser';
12
- import RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client.cjs';
13
- import createRpc from 'rpc-websockets/dist/lib/client/websocket.browser.cjs';
12
+ import { CommonClient, WebSocket } from 'rpc-websockets';
14
13
  import { keccak_256 } from '@noble/hashes/sha3';
15
14
  import { secp256k1 } from '@noble/curves/secp256k1';
16
15
 
@@ -3531,10 +3530,10 @@ class EpochSchedule {
3531
3530
 
3532
3531
  var fetchImpl = globalThis.fetch;
3533
3532
 
3534
- class RpcWebSocketClient extends RpcWebSocketCommonClient {
3533
+ class RpcWebSocketClient extends CommonClient {
3535
3534
  constructor(address, options, generate_request_id) {
3536
3535
  const webSocketFactory = url => {
3537
- const rpc = createRpc(url, {
3536
+ const rpc = WebSocket(url, {
3538
3537
  autoconnect: true,
3539
3538
  max_reconnects: 5,
3540
3539
  reconnect: true,