From fe780f58fc19f3ef10acd4dd6b964bff16ca00c3 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 17 Jun 2025 10:29:18 +0200 Subject: [PATCH] SIP-20: Allow `ws` protocol --- SIPS/sip-20.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SIPS/sip-20.md b/SIPS/sip-20.md index d9da2dd..e6fe1d7 100644 --- a/SIPS/sip-20.md +++ b/SIPS/sip-20.md @@ -62,7 +62,7 @@ type OpenWebSocketParams = { The RPC method takes two parameters: - `url` - The URL of the WebSocket service to connect to. - - The URL MUST be a valid WebSocket URL, starting with `wss://`. URLs starting with `ws://` are not allowed. + - The URL MUST be a valid WebSocket URL, starting with `wss://` or `ws://`. - 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. - `protocols` - An optional array of subprotocols to use for the WebSocket connection.