Skip to content

Commit

Permalink
allow for chrome-extension schema in the RPC url
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 17, 2023
1 parent 86d1835 commit 64edf20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/wrpc/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ impl KaspaRpcClient {
Ok("ws")
} else if protocol == "https:" {
Ok("wss")
} else if protocol == "chrome-extension:" {
Ok("wss")
} else {
Err(Error::Custom(format!("Unsupported protocol: {}", protocol)))
}
Expand Down

0 comments on commit 64edf20

Please sign in to comment.