Hi guys, I can't find how to clean subscriptions i...
# orm-help
l
Hi guys, I can't find how to clean subscriptions in my graphql yoga server, it seems that when a websocket connection disconnect, subscriptions are still registered so every time I reload the client application (with apollo client inside), it seems to register a new connection via prisma-bindings, so if I reload my app 7 times, I have one ws connection but the resolve function in my subscription is called 7 times, I found an issue on github but I still have the problem https://github.com/prisma/graphql-yoga/issues/101, did someone already have this issue please ?
r
Not sure about reloading but for me message is being pushed to client even when client unsubscribes for a specific message by sending "stop" event. I have created issue regarding the same with graphql-yoga: https://github.com/prisma/graphql-yoga/issues/435