grpc-node/examples/cancellation
Michael Lumish 2003c8859c Cancellation example: corrected information 2023-10-02 10:12:03 -07:00
..
README.md Cancellation example: corrected information 2023-10-02 10:12:03 -07:00
client.js Add cancellation example 2023-09-25 17:20:36 -07:00
server.js Cancellation example: corrected information 2023-10-02 10:12:03 -07:00

README.md

Cancellation

This example shows how clients can cancel in-flight RPCs by cancelling the call object returned by the method invocation. The client will receive a status with code CANCELLED and the server handler's call object will emit either a 'cancelled' event or an 'end' event.

Start the server

node server.js

Run the client

node client.js