grpc-web-devtools will not work for streaming calls if the client chain the streaming callbacks.
kitchenSpoon opened this issue · comments
Jack Lian commented
Tested on commit: 9d78d62
Seems like the streaming callback for "status" is not being call when using the build of grpc-web-devtools with the above commit.
Roger Chapman commented
Can you provide more info on what is not working? I can't reproduce issues with the status
callbacks.
Jack Lian commented
I have code similar to this which chain the callbacks
this.client.getStreamingResponse()
.on("data", response => {})
.on("status", status => {})
which does not work for the callbacks after the first.
but this will work
const response = this.client.getStreamingResponse()
response.on("data", response => {})
response.on("status", status => {})