Skip to content

Commit

Permalink
Remove extra initial (blank) message for streaming requests
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
gabrielgrant committed Jun 28, 2017
1 parent 9d89f08 commit d9cd341
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ export class Call {
this.streamHandle = this.service.stub[camelMethod]((error: any, response: any) => {
this.handleCallCallback(error, response);
});
// If they sent some args (shouldn't happen usually) send it off anyway
if (args) {
this.streamHandle.write(args);
}
} else if (rpcMeta.requestStream && rpcMeta.responseStream) {
this.streamHandle = this.service.stub[camelMethod]();
this.setCallHandlers(this.streamHandle);
Expand Down

0 comments on commit d9cd341

Please sign in to comment.