Function vector_api_client::connect_subscription_client

source ยท
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 Payloads to the client.