I have a situation that using a subscription x2 or more times that is being called with the same parameters and throws the error "already subscribed", I understand that if I disposed the previous subscription there is no active subscription at this point right? this is a problem i'm not relating it now but this wouldn't have to happen.
The big problem comes when I want to use the same subscription call again with new parameters and this subscription doesn't work anymore, it gets "subscribed" but doesn't throw any response when it have to or error or anything, the Web Socket is still open (other subscriptions still working).
In order to execute the same subscription after it disposed you can call com.apollographql.apollo.ApolloSubscriptionCall#clone
Already tried that and it doesn't solve the problem, also both approaches using it through Rx2Apollo and without it, the problem persists, the thing is the subscription works fine (subscribing & unsubscribing various times) until it throws an error when is already subscribed and if I try a new same subscription of the same type (ApolloSubscriptionCall) with other parameters it doesn't work.
@sav007 Do you have any other suggestion or is it really a bug to solve?
Could you please provide a sample of parameters for your query?
I'm also faceing this same issue:
So, from my point of view, we have two problems here: 4 and 6.
I dispose the subscription
How do you dispose it? Are you sure that it was disposed? As already subscribed means that subscription is still active.
Meantime I'm trying to replicate this issue locally on sample app, but for now with no luck.
Alright I guess I have explanation what is going on here:
already subscribed error.unsubscribe, that will unsubscribe first active subscription as well (these 2 subscriptions have the same internal id that is used to track active subscriptions).I will check if we can lift the restriction on having unique subscriptions, I think it makes sense to be able to have multiple subscriptions with the same query.
Yes thanks, I focused more explaining the second problem being the subscription unusable after the problem you just mentioned occurred.
Most helpful comment
Alright I guess I have explanation what is going on here:
already subscribederror.unsubscribe, that will unsubscribe first active subscription as well (these 2 subscriptions have the same internal id that is used to track active subscriptions).I will check if we can lift the restriction on having unique subscriptions, I think it makes sense to be able to have multiple subscriptions with the same query.