This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:graphql/client.dart'; | |
import 'dart:io' as io; | |
import 'package:websocket/websocket.dart' as _ws; | |
/// Custom version of [WebSocketLink] that connects with the given headers | |
class WSLink extends Link { | |
/// Creates a new [WebSocketLink] instance with the specified config. | |
WSLink( | |
this.url, { | |
this.config = const SocketClientConfig(), |