WebSocketLink constructor

WebSocketLink(
  1. String url, {
  2. SocketClientConfig config = const SocketClientConfig(),
  3. String subProtocol = GraphQLProtocol.graphqlWs,
})

Creates a new WebSocketLink instance with the specified config.

Implementation

WebSocketLink(
  this.url, {
  this.config = const SocketClientConfig(),
  this.subProtocol = GraphQLProtocol.graphqlWs,
});