pub async fn connect(addr: &str) -> Result<Framed<TcpStream, PacketCodec>>
Connect to a remote server and return the framed transport