[]Function sc_network::multiaddr::from_url_lossy

pub fn from_url_lossy(url: &str) -> Result<Multiaddr, FromUrlErr>

Attempts to parse an URL into a multiaddress. Ignores possible loss of information.

This function is similar to from_url, except that we don't return an error if some information in the URL cannot be retain in the generated multiaddres.

This function is only present if the url feature is enabled, and it is enabled by default.


let addr = "ws://user:[email protected]:8080/";