graphql_ws_web_socket_channel_connector 0.1.0
graphql_ws_web_socket_channel_connector: ^0.1.0 copied to clipboard
A graphql_ws WebSocketConnector backed by package:web_socket_channel. Lets graphql_ws run on Flutter web (and anywhere else web_socket_channel is supported) without dropping graphql_ws's zero-dependency core.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add graphql_ws_web_socket_channel_connectorWith Flutter:
$ flutter pub add graphql_ws_web_socket_channel_connectorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
graphql_ws_web_socket_channel_connector: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:graphql_ws_web_socket_channel_connector/graphql_ws_web_socket_channel_connector.dart';