Expand description
Hybrid connection that can use a different connection for subscriptions vs querues & mutations.
You will usually pretty much immediately turn the connection into a Client. E.g.
use glimesh::{hybrid, ws, http, Auth};
let auth = Auth::client_credentials("<GLIMESH_CLIENT_ID>", "<GLIMESH_CLIENT_SECRET>");
let query = http::Connection::new(auth.clone());
let sub = ws::Connection::new(auth);
let client = hybrid::Connection::new(query, sub).into_client();
Structs
- A hybrid connection that allows combining two different connections into one effective connection, for example for using an http client for querying & mutating, and a websocket client for subscriptions.
Type Definitions
- Type alias for a hybrid backed client