Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to deduct connection establishment in Apollo subscriptions? #12865

Copy link
Copy link
@ssmilin

Description

@ssmilin
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.