Skip to content

docs: clarify JsonRpcProvider vs WebSocketProvider behavior#5067

Open
stalim17 wants to merge 1 commit intoethers-io:mainfrom
stalim17:main
Open

docs: clarify JsonRpcProvider vs WebSocketProvider behavior#5067
stalim17 wants to merge 1 commit intoethers-io:mainfrom
stalim17:main

Conversation

@stalim17
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant