Equivalent of `subscription-transport-ws` `SubscriptionClient.unsubscribeAll()` for `graphql-ws`?

In moving from the no-longer-maintained subscription-transport-ws library, I’m struggling with how to gracefully close all GraphQL Subscriptions on user sign-out. Previously, we would call subscription-transport-ws 's SubscriptionClient.unsubscribeAll() method on sign-out. Is there an equivalent method in graphql-ws ? If not, how might one ensure that all GraphQL Subscriptions are completed and the WebSocket connection closed on user sign-out?

1 Like