We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbf79da commit decae73Copy full SHA for decae73
src/grpc_util.ts
@@ -120,6 +120,11 @@ export class Stream<GrpcOutput, StreamOutput> {
120
}
121
this.responses_.push({ data });
122
});
123
+ call.on("status", (status: { code: number; metadata: GrpcMetadata }) => {
124
+ if (status.code === 0) {
125
+ this.responses_.push({ metadata: new Metadata(status.metadata) });
126
+ }
127
+ });
128
call.on("metadata", (metadata: GrpcMetadata) => {
129
this.responses_.push({ metadata: new Metadata(metadata) });
130
0 commit comments