-
Notifications
You must be signed in to change notification settings - Fork 125
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
Why I cannot get messages in real-time but only when the browser closes the pending call? #128
Comments
I think this is due to: volatiletech/authboss#325. |
I will close this issue ASAP. |
For server streaming, the response is read in chunks. The server must send the response chunks out as soon as possible, not wait for the response to finish.
It is possible that the libraries you are using have better support for the text format. I guess the chance is rather slim though. It is more likely that the authboss middleware is just not written with streaming responses in mind. |
If I remove that library from my backend server Here is the code for that middleware: https://github.com/volatiletech/authboss/blob/master/client_state.go#L123. |
I am sorry you got stuck with this, but I'm afraid there is nothing we can do from the protobuf-ts side. This needs some debugging of the go code to pinpoint the cause. |
I'm trying to use protobuf-ts with server streaming (https://github.com/improbable-eng/grpc-web/tree/master/go/grpcweb in Golang) but I don't get messages from server until connection is closed.
I'm using Svelte 3 like this:
The call in in pending state for about 2.2 min. After that I get all messages logged in console.
I need them in real-time!
Where am I doing wrong?
The text was updated successfully, but these errors were encountered: