Hi guys, I have a query about a Subscription behav...
# prisma-whats-new
p
Hi guys, I have a query about a Subscription behaviour. My app is using React-native, apollo-client, Expo and the GraphCool. It's a chat messege app. So, to get my chat feed updated I'm using the subscription, and I'm getting a strange behaviour from it. When a Message is created at GraphCool the subscription should get the new message and update my feed. But the behavier that is happeing is this one: An action creates 4 messages and my subscription do not get all the messages, it gets like this: message 1, message 2 and message 4. Other times message 1 and 2. And some times no message came. The messages are created at GraphCool. Did you guys have any clue why is this happening?
1
n
are the messages created in a very short time frame?
p
yes
n
can you reproduce this behaviour in the GraphQL Playground?
p
can I set subscriptions at Playgroud?
n
yes 🙂
p
just created! Same behaviour =( Resolver started, mede 4 messages, subscription only got 3 =/
n
could you please look into the WS Frames directly?
p
alright! Thanks!
alright! Thanks!
the WS Frames when I using the Playground or at my app do you meen?
n
Playground
afaik you cannot look into the WS Frames in a Expo app 😕
p
Just created the problem in playground and used the WS Frames, what should a look? There as no erros at the console or the frames.
n
you're supposed to get a payload for every event
p
Thanks for the help! Just solve the problem. It was because a screen transition. The transition was occurring in the middle of the subscription.
💚 1
n
awesome! 🙂