Expected Behaviour
I added GraphQLWsLink to my apollo client. In order to support graphql subscriptions via Hasura back end. Yet I cannot get it to work properly. I followed all of the documentation and then some. This is the closest I have gotten with my implementation. Below
the biggest red flag is that it seems to get stuck in this error state until I remove split() then re implement, and it works kinda intermittently, but never surfaces data via the subscripttion
Actual Behaviour
Sometimes I can get the ws handshake to happen in the browser network tab. But no data is present. At that point I added the
"use client" tag to my component, figuring that web sockets only work client side. Then I start getting this error. I then tried adding WebSocketImpl: WebSocket({...}) and I just get more errors. Been running in circles for 2 days following error messages with no luck.
I went with polling, because this doesn't seem ready for prime time with my stack. Feel free to close if you want. I will switch back to WS when it's ready.
Screenshot Visualising is always helpful.
Expected Behaviour I added GraphQLWsLink to my apollo client. In order to support graphql subscriptions via Hasura back end. Yet I cannot get it to work properly. I followed all of the documentation and then some. This is the closest I have gotten with my implementation. Below
the biggest red flag is that it seems to get stuck in this error state until I remove split() then re implement, and it works kinda intermittently, but never surfaces data via the subscripttion
Actual Behaviour Sometimes I can get the ws handshake to happen in the browser network tab. But no data is present. At that point I added the "use client" tag to my component, figuring that web sockets only work client side. Then I start getting this error. I then tried adding WebSocketImpl: WebSocket({...}) and I just get more errors. Been running in circles for 2 days following error messages with no luck.
Debug Information
Further Information Anything else you might find helpful.