pub fn replace_protocol(address: &str) -> String
Replaces occurrences of “ws://” and “wss://” in a given address with “http://” and “https://” respectively.
address
&str
A String representing the modified address.
String