Skip to content

Wire Grpc: There is no way to wait for a connection to be established before proceeding #3167

Open

Description

Wire Grpc provides the execute(CoroutineScope) that internally launches a coroutine on IO to connect & read messages.

In our business logic we are also launching coroutines to read the incoming messages & send keep alive pings to our system, immediately after executing the call.

The problem is that there is no way currently to wait for the initial call to complete, ie some sort of callback that signifies a connection is properly established.

Ideally I'd run my pings after a successful connection but now I just run the pings unconditionally and handle if a pong doesnt get back within an arbitrary timeout.

Would be great if this could be supported so that instead I can just awaitConnected() or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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