- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 640
Closed
Labels
⌛ reproduction neededIssue is subtle and requires a true accessible reproduction to debugIssue is subtle and requires a true accessible reproduction to debugPriority: Waiting to be assignedTo be inside the next release process, it need to be marked with some level of priorityTo be inside the next release process, it need to be marked with some level of prioritydart clientIssue relates mainly to the standalone dart clientIssue relates mainly to the standalone dart clienthelp wantedExtra attention is neededExtra attention is needed
Description
I have this code:
    final websocketLink = WebSocketLink(
      subscriptionUri,
      config: SocketClientConfig(
        autoReconnect: true,
        delayBetweenReconnectionAttempts: const Duration(seconds: 2),
        initialPayload: () {
          return authTokenService.addAuthHeader(EnvVariables.currentHost);
        },
      ),
      subProtocol: GraphQLProtocol.graphqlTransportWs,
    );
    link = Link.split(
      (request) => request.isSubscription,
      websocketLink,
      link,
    );
but subscription stuck with state:  Initialising connection and no messages are comming through.
It would useful to have documentation (at least me - could not find it) or if you guys could share any possible reasons for this.
Without this i canno tmove my app to new backend which uses new protocol :(
p.s. I even reduced it to:
    final websocketLink = WebSocketLink(
      subscriptionUri,
      subProtocol: GraphQLProtocol.graphqlTransportWs,
    );
    link = Link.split(
      (request) => request.isSubscription,
      websocketLink,
      link,
    );
  }
by removing auth but result is the same....
Metadata
Metadata
Assignees
Labels
⌛ reproduction neededIssue is subtle and requires a true accessible reproduction to debugIssue is subtle and requires a true accessible reproduction to debugPriority: Waiting to be assignedTo be inside the next release process, it need to be marked with some level of priorityTo be inside the next release process, it need to be marked with some level of prioritydart clientIssue relates mainly to the standalone dart clientIssue relates mainly to the standalone dart clienthelp wantedExtra attention is neededExtra attention is needed