graphql-ws-client 0.13.0

A graphql over websockets client
Documentation
use std::future::Future;

use crate::{Error, client::Message};

pub struct Conn;

impl crate::client::Connection for Conn {
    async fn receive(&mut self) -> Option<Message> {
        unimplemented!()
    }

    async fn send(&mut self, _: Message) -> Result<(), Error> {
        unimplemented!()
    }
}

#[derive(serde::Serialize)]
pub struct Subscription;

impl crate::graphql::GraphqlOperation for Subscription {
    type Response = ();

    type Error = crate::Error;

    fn decode(&self, _data: serde_json::Value) -> Result<Self::Response, Self::Error> {
        unimplemented!()
    }
}

pub fn spawn<T>(_: impl Future<Output = T> + Send + 'static) {}