{"library":"web3-providers-ws","type":"library","category":null,"description":"WebSocket provider for web3.js 4.x (currently 4.0.8). Part of the web3.js v4 ecosystem, which migrated to ESM-only modules with native TypeScript support. Replaces the HTTP provider for real-time subscriptions (e.g., newBlockHeaders, logs). Key differentiators: supports reconnection with exponential backoff, custom headers, and authentication. Incompatible with web3.js v1.x provider APIs. Published under @ethereum-navigator scope; requires manual subscription management.","language":"javascript","status":"active","version":"4.0.8","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install web3-providers-ws","imports":["import { WebSocketProvider } from 'web3-providers-ws'","import type { WebSocketProviderOptions } from 'web3-providers-ws'","import WebSocketProvider from 'web3-providers-ws'"]},{"cmd":"yarn add web3-providers-ws","imports":[]},{"cmd":"pnpm add web3-providers-ws","imports":[]}],"homepage":"https://github.com/ChainSafe/web3.js#readme","github":"https://github.com/ChainSafe/web3.js","docs":null,"changelog":null,"pypi":null,"npm":"web3-providers-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}