Not sure if this is your issue, but I am convinced the IsCancelled feature 
is broken in core: https://github.com/grpc/grpc/issues/18929

On Wednesday, July 17, 2019 at 2:38:03 PM UTC-7, ikcge...@gmail.com wrote:
>
> Hey gRPC team, my name's Ian! Super excited about this technology, but 
> have been running into a few difficulties implementing in Node.js. Here's 
> one that has been stumping me:
>
> *I have a server-side streaming service-method on the client.*
>
>
> const numberStream = stub.streamNumbers(
>   { number: 5 },
>   meta,
>   {
>     interceptors: [interceptorProvider]
>   },
>   {}
> );
>
>
>
> *When I cancel the method from the client with...*
>
> numberStream.cancel()
>
>
>
> My client side interceptor detects a cancelled event. But my server 
> remains unaware of the cancellation.
>
> The cancelled property remains "false", and my event listener for
> call.on("cancelled",()=>{
>
>
> })
>
>
> does not fire. Any chance someone might know where my problem lies?
>
> (snippet from server side streaming service method)
>
> function streamNumbers(call) {
>
>
>   call.on("cancelled", () => {
>     console.log("cancelled");
>     call.end();
>   });
>
>
>   console.log(call.__proto__.__proto__);
>
>
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/04c08f7c-225a-4909-b40d-e0fb1d060a66%40googlegroups.com.

Reply via email to