<@U3QTFRHK7> what's the `susbcription-transport-ws...
# prisma-whats-new
n
@martin what's the
susbcription-transport-ws
version you use and how are you initializing it
m
"subscriptions-transport-ws": "^0.7.3"
Copy code
const wsClient = new SubscriptionClient('<wss://subscriptions.graph.cool/v1/__PROJECTID__>', {
	reconnect: true
})
n
please try this instead
Copy code
const wsClient = new SubscriptionClient('<wss://subscriptions.graph.cool/v1/__PROJECT_ID__>', {
  reconnect: true,
  timeout: 20000
})
m
Ok. So far, so good. Also, @marika.w.
n
I wonder why you are running into this just now, because this has been going on and fixed for quite a while already: https://github.com/apollographql/subscriptions-transport-ws/issues/149
m
I’ve been having this for a while (mentioned it previously—thought it was something I could ignore during testing)
n
Ok I see! Sorry for not thinking of this before 😉
m
No worries, thanks! ☺️
j
I'm getting a similar error to this in both dev and production except it's "WebSocket connection to 'wss://subscriptions.us-west-2.graph.cool/v1/__PROJECT_ID__' failed: WebSocket is closed before the connection is established." Is there anything to try besides the 20000 timeout? That seems to have no effect
but i'm using susbcription-transport-ws 0.8.1
r
@jessicaalonso downgrading to susbcription-transport-ws 0.6.0 fixed it for me