We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5923e4 commit a308bf2Copy full SHA for a308bf2
README.md
@@ -493,6 +493,7 @@ const ExampleService = ServiceSchema.define({
493
responseData: Type.Object({ echo: Type.String() }),
494
async handler({ ctx, reqReadable, resWritable }) {
495
// for streams, cancellation closes both readable and writable
496
+ // in addition to triggering the abort signal.
497
for await (const msg of reqReadable) {
498
if (!msg.ok) {
499
// msg.payload.code === CANCEL_CODE error if client cancelled
0 commit comments