Stylianos Gakis
03/11/2022, 6:45 PMsubscriptionManager
here and there, always to call .reconnect() on it.
There is no mention in the migration files about this class. I am wondering if there’s some specific thing I can do to imitate whatever we were doing before, or if somehow this wouldn’t be necessary anymore due to the internals being changed somehow.
I’m trying to see when and why we call this so far (code that predates me) and it seems to be around places where we logout of the app, when we fetch a new token for our backend etc.
And I guess in general the question is how come that class completely was wiped from the internals, was it replaced with something? If not, how is that handled now in 3.0?mbonnin
03/11/2022, 6:51 PMSubscriptionManager
wouldn't be required but maybe I'm wrong.mbonnin
03/11/2022, 6:52 PMStylianos Gakis
03/11/2022, 6:53 PMStylianos Gakis
03/11/2022, 6:54 PMmbonnin
03/11/2022, 6:55 PMreconnect()
is another question and I'd rather have users rebuild their ApolloClient, even maybe keeping the OkHttp threadpool if requiredmbonnin
03/11/2022, 6:55 PMmbonnin
03/11/2022, 6:56 PMwebSocketNetworkTransport.reconnect()
if it's the caseStylianos Gakis
03/11/2022, 6:59 PMsingle
😬
This may mean that we’d need to tackle that part in this migration as well. Maybe it’s high time we did that though 😄
Have you had anyone else come with questions about this use case? I wonder if this is only a (potential) problem for us since we have all these things globally provided everywhere.mbonnin
03/11/2022, 7:00 PMStylianos Gakis
03/11/2022, 7:02 PMmbonnin
03/11/2022, 7:02 PMStylianos Gakis
03/11/2022, 7:06 PMmbonnin
03/11/2022, 7:09 PMmbonnin
03/11/2022, 7:10 PMStylianos Gakis
03/11/2022, 7:15 PMwasyl
03/11/2022, 7:26 PMStylianos Gakis
03/11/2022, 7:40 PMwasyl
03/11/2022, 9:14 PMbod
05/04/2022, 7:03 PMcloseConnection
, an equivalent of the 2.x reconnect
. More info here 🙂
(thanks @mbonnin for finding that thread!)Stylianos Gakis
05/04/2022, 9:00 PMmbonnin
05/04/2022, 10:07 PM