Describe the bug
I feel like I've tried absolutely everything including going deep into the implementation of the subscription implementation
To Reproduce
Steps to reproduce the behavior:
Create an Amplify project with amplify add api and add model and a subscription query
Run amplify mock to get a local instance of the amplify running
✔ Generated GraphQL operations successfully and saved at graphql
✔ Code generated successfully and saved in file API.swift
AppSync Mock endpoint is running at http://192.168.86.21:20002
Use Subscription widget configured with correctly with the subscription query created in 1.
Observe the following error
flutter: Connecting to websocket: ws://localhost:20002/graphql...
flutter: There was an error causing connection lost: WebSocketException: Connection to 'http://localhost:20002/graphql#' was not upgraded to websocket
flutter: Disconnected from websocket.
flutter: Scheduling to connect in 5 seconds...
Expected behavior
Should connect properly and establish a connection
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: all
Version all
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
I'm tempted to think that the subscription websocket address I am using is incorrect. When I connect through GraphiQL it shows the following message on amplify mock logs when I execute a subscription operation:
I feel like I've gone over everything with a fine toothed comb by this point and desperately need help to get unblocked. Thank you for any info that anyone can provide
Describe the bug I feel like I've tried absolutely everything including going deep into the implementation of the subscription implementation
To Reproduce Steps to reproduce the behavior:
amplify add api
and add model and a subscription queryamplify mock
to get a local instance of the amplify runningSubscription
widget configured with correctly with the subscription query created in 1.Expected behavior Should connect properly and establish a connection
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
I'm tempted to think that the subscription websocket address I am using is incorrect. When I connect through GraphiQL it shows the following message on
amplify mock
logs when I execute a subscription operation:I feel like I've gone over everything with a fine toothed comb by this point and desperately need help to get unblocked. Thank you for any info that anyone can provide