Skip to content

How to detect gRPC connection loss as soon as possible in v. 2.0? #109

Open
@Vladlex

Description

@Vladlex

Hello, I'd like to discuss the best approach (or any) for detecting channel disconnection (offline) as quickly as possible.

Context:
We have an iOS app that should show connection indicator (like "idle/offline", "connecting", "connected").

What are you trying to achieve?

I look for an interface which allows me to observe state of connection or connection pool.

What have you tried so far?

I can see a very similiar question here, but is't related for a v1.0 version.
I've looked into grpc-swift source code and can see, that's ClientConnection is exist, but it has package level access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions