async fn connect(addr: SocketAddr, user: Option<&str>) -> Client