MetaMask / MetaMask/metamask-extension

[Bug]: Can add wss:// connection to rpcurl

Open
#28,394 0 comments 0 reactions 0 assignees View on GitHub
external-contributor T08-featureRequest team-assets
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

I'm trying to add a websocket rpc url from a rpc provider but the UI is enforcing https://

### Expected behavior

should support https:// or wss://

### Screenshots/Recordings

![metamask](https://github.com/user-attachments/assets/6d616b56-a523-40a5-abf7-d6b9ff07a2ac)

### Steps to reproduce

1. add an rpcurl to a network that metamask supports websockets for
2. try a websocket from infura
3. see the error

### Error messages or log output

_No response_

### Detection stage

In production (default)

### Version

12.6.0-flask.0

### Build type

Flask

### Browser

Chrome

### Operating system

Linux

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

- websockets can retrieve logs alot better than polling strategies

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the MetaMask UI by adding an RPC URL from an Infura websocket endpoint, then locate the validation that rejects values beginning with wss://. The work is done when both https:// and wss:// RPC URLs are accepted for supported networks and the existing error no longer appears for websocket URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.