Skip to content

Commit e8cf931

Browse files
SIP-20: Allow ws protocol (#177)
1 parent 8b614c1 commit e8cf931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SIPS/sip-20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type OpenWebSocketParams = {
6262
The RPC method takes two parameters:
6363

6464
- `url` - The URL of the WebSocket service to connect to.
65-
- The URL MUST be a valid WebSocket URL, starting with `wss://`. URLs starting with `ws://` are not allowed.
65+
- The URL MUST be a valid WebSocket URL, starting with `wss://` or `ws://`.
6666
- Only one WebSocket connection can be opened per URL at a time. If a Snap tries to open a new connection to the same URL while an existing connection is still open, the client MUST throw an error.
6767
- `protocols` - An optional array of subprotocols to use for the WebSocket connection.
6868

0 commit comments

Comments
 (0)