ethers.js icon indicating copy to clipboard operation
ethers.js copied to clipboard

docs: clarify JsonRpcProvider vs WebSocketProvider behavior

Open stalim17 opened this issue 1 month ago • 0 comments

This PR adds a short note to the documentation clarifying the behavioral difference between JsonRpcProvider and WebSocketProvider.

JsonRpcProvider relies on polling under the hood, while WebSocketProvider enables push-based subscriptions suitable for low-latency event streams such as pending transactions or log subscriptions.

This helps integrators choose the appropriate provider type when building real-time UX. Documentation-only change, no code modifications.

stalim17 avatar Nov 13 '25 05:11 stalim17