Skip to content

Add error handling on invalid rpcs#41

Merged
joaocosta9 merged 6 commits intomainfrom
jc-error-invalid-rpc
May 2, 2025
Merged

Add error handling on invalid rpcs#41
joaocosta9 merged 6 commits intomainfrom
jc-error-invalid-rpc

Conversation

@joaocosta9
Copy link
Copy Markdown
Contributor

@joaocosta9 joaocosta9 commented Apr 30, 2025

Before:
Every time a new RPC URL was submitted via the input, a new WebSocket connection was opened. If the URL was invalid, the connection attempt would persist, and multiple simultaneous connection attempts could occur — even after entering a new URL.

This PR:
Ensures the WebSocket connection is valid before initializing the Wagmi client, preventing multiple overlapping connection attempts to invalid endpoints.

Screenshot 2025-04-30 at 13 05 10

@joaocosta9 joaocosta9 requested a review from naps62 April 30, 2025 12:10
@joaocosta9 joaocosta9 marked this pull request as draft May 1, 2025 00:01
@joaocosta9 joaocosta9 marked this pull request as ready for review May 2, 2025 14:03
@joaocosta9 joaocosta9 merged commit 2e3f1a6 into main May 2, 2025
1 check passed
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