gql_websocket_link 0.3.3 icon indicating copy to clipboard operation
gql_websocket_link: ^0.3.3 copied to clipboard

GQL Websocket Link

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

GQL WebSocket link to execute subscriptions as well as mutations & queries against a GraphQL backend. This link support autoReconnect and will resubscribe after reconnecting.

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(),

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