We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79735f5 + 41714f0 commit 14b48c2Copy full SHA for 14b48c2
links/gql_websocket_link/lib/src/link.dart
@@ -120,7 +120,8 @@ class WebSocketLink extends Link {
120
this.graphQLSocketMessageDecoder = _defaultGraphQLSocketMessageDecoder,
121
this.initialPayload,
122
this.inactivityTimeout,
123
- }) : assert(uri == null || (channelGenerator == null)) {
+ }) : assert((uri == null && channelGenerator != null) ||
124
+ (uri != null && channelGenerator == null)) {
125
_channelGenerator =
126
channelGenerator ?? () => WebSocketChannel.connect(Uri.parse(uri!));
127
}
0 commit comments