Some request requires SNI for socket connection. As understand I should create SocketConnectable from Uri (host) but can’t find example
Found NetworkAddress implement SocketConnectable so it works for my needs:
let connectable = gtk::gio::NetworkAddress::new(
&uri.host().unwrap(),
1965
);
client.connect_async(
&connectable,
Some(&cancellable),
move |connect| match connect {
// ..