Open
Description
openedon Nov 5, 2024
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
Labels
No labels