Good evening everyone! I was wondering if there's ...
# prisma-whats-new
j
Good evening everyone! I was wondering if there's any reason to suspect flakiness on websocket subscriptions right now - I'm testing something that was working smoothly earlier this evening and now its a bit hit or miss
FWIW, the same subscription query running in the playground is receiving updates but my apollo/react/subscriptions-transport-ws app isn't
n
hey @jessicaalonso what's the version of the WSS client in your app?
j
Using 0.8.1
n
could you try a longer reconnect time (30000)?
j
Okay, I've set that to 30000. I am seeing update frames come across the websocket, but they're coming about 10-15 seconds after I send a mutation in the playground. It could be that I wasn't waiting long enough last night to see them eventually coming through, but earlier in the evening they were coming within a second or so of the change.
n
huh this is truly unexpected
j
So this 10-15s latency is actually all taking place on the same initial websocket connection as when I first loaded the page, without going through any reconnection. And I'm actually now seeing the same latency running the subscription in the playground
Had a simple 1-field mutation on an object that took 18s to come through, but it came through at the same time on both my app and the playground, so perhaps the issue is upstream from the websocket itself
n
that's interesting, I'm not seeing an indication for this problem on our end
in what region is your project hosted?
j
Hm, where can I find that? I don't remember the exact selection but it was west-coast-california-esque
I can give you my project ID if that helps?
n
ah
that'll be US Oregon 😄
j
yep that sounds right 😃
n
the subscription instances in the US region look good. are you also based on the US?
j
Yes
n
I cannot find a problem on our side but will continue to investigate
j
Seems a bit better now, about 2-3 seconds response time
👍 1