-
Notifications
You must be signed in to change notification settings - Fork 161
not receiving messages in real time. #70
Comments
I have the same issue - can we get an update on this please? IT looks like a subscription error in the graph QL ObservableQuery.js:215 Unhandled GraphQL subscription error Error: Response not successful: Received status code 400 |
Ok, I've solved the issue: Appsync now forces websocket connections for subscriptions, this happens by default in the latest package. To fix the starter, upgrade "aws-appsync": "^4.1.1", and fix a couple of dependancies - import { AUTH_TYPE } from 'aws-appsync/lib/link/auth-link'; to There was also a ts type error which I fixed - then it works like a charm! |
@Xyloboard thanks mate, good catch on this. I also tried using Apollo graphql client, but when it comes to tight WebSocket connection that's a nightmare, I did not manage till the end to do that. |
Please ignore the related commit message above. I'm still testing this project locally. |
I followed the instructions and i am able to run the app but when i am exchanging messages between 2 users, I have to refresh the page every time to get the message instead of having it in real time.
The text was updated successfully, but these errors were encountered: