-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of server stream subscription #81
Comments
That’s a bit odd. I can’t immediately tell what your issue might be. Do you have snippet or example of what your server side imple looks like for this endpoint? |
In the example project there is a sample of a ticker service. This might help some but if you’re still having issues I’m happy to help. A key thing to note is that this example binds a single producer broadcasting to multiple clients. Which might be the same as your use case. For a one to one service to client impl something like this might be what you're looking for. override suspend fun listen(request: Empty, responseChannel: SendChannel<Tick>) {
while(isActive){
responseChannel.send(...)
delay(1000)
}
} |
So my current best guess is that in someway the behavior of the flow control implemented in grpc go differs from the java impl. If thats the case, this would be an interop bug that should be fixed in kroto. Ill need to get a sample project together to reproduce the issue, but after that I should be able to track down the source of the problem. Thanks again for reporting this! |
Hello
Can you provide an example of how to subscribe to a server stream please?
In my case, the server sends messages to the stream every second, but when I connect to it like:
I get messages every 1-2 minutes.
The text was updated successfully, but these errors were encountered: