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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/81a5a6e1-f6c6-4ec4-9f29-5eea8aac66c2%40googlegroups.com.

Reply via email to