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
The useSubscription hook has a loading flag that defaults to true and switches to false when the first data is received. However, is there a way to determine when the subscription connection itself is successfully established, even if the actual data is expected later?
For example, in our case, data may arrive after some delay, but we want to know when the connection handshake has completed successfully.
Should the loading flag be adjusted to false upon receiving the first acknowledgment (ack) message instead of waiting for the first data payload?
We are using the HTTP multipart subscription protocol.