gql_websocket_link 0.1.1-alpha+1588798058511 copy "gql_websocket_link: ^0.1.1-alpha+1588798058511" to clipboard
gql_websocket_link: ^0.1.1-alpha+1588798058511 copied to clipboard

outdated

GQL Websocket Link

GQL WebSocket link to execute subscriptions as well as mutations & queries against a GraphQL backend

Usage #

A simple usage example:

import "package:gql_link/gql_link.dart";
import "package:gql_websocket_link/gql_websocket_link.dart";

void main () {
  final link = Link.from([
    // SomeLink(),
    WSLink("ws://<GRAPHQL_SERVER_ENDPOINT>/graphql"),
  ]);
}

Make sure you have WebSocket transport supported on your GraphQL server.

Features and bugs #

Please file feature requests and bugs at the GitHub.

Attribution #

This code was adapted with minor changed from the graphql-flutter repo