pub async fn connect(
client: &Endpoint,
url: &Url,
) -> Result<Session, ClientError>
Expand description
Connect to a WebTransport server at the given URL.
The UR: must be of the form https://host:port/path
or else the server will reject it.
Returns a Session
which is a wrapper over quinn::Connection
.