pub async fn connect_subscription_client(
url: Url,
) -> Result<SubscriptionClient, Error>
Expand description
Connect to a new WebSocket GraphQL server endpoint, and return a SubscriptionClient
.
This method will a) connect to a ws(s):// endpoint, and perform the initial handshake, and b)
set up channel forwarding to expose just the returned Payload
s to the client.