You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use subscriptions (graphql-ws) and found a little problem on initial step: when p.handleInit() returns error then engine.TerminateAllSubscriptions() does nothing, because at this moment engine.subCancellations is empty, so it returns nil error to UniversalProtocolHandler.Handle(), and subscription keeps alive.
(element is added to engine.subCancellations only on start step, not initial).
I was trying to use subscriptions (graphql-ws) and found a little problem on initial step: when
p.handleInit()
returns error thenengine.TerminateAllSubscriptions()
does nothing, because at this momentengine.subCancellations
is empty, so it returns nil error toUniversalProtocolHandler.Handle()
, and subscription keeps alive.(element is added to
engine.subCancellations
only on start step, not initial).(link to this func)
I suppose we should return error instead of terminating all subscriptioins
The text was updated successfully, but these errors were encountered: