Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose response metadata for unary calls #239

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

stanley-cheung
Copy link
Collaborator

@stanley-cheung stanley-cheung commented Aug 9, 2018

Fixes #220

Usage:

var call = service.echo(req, {}, function(err, response) {
  // ...
});
call.on('status', function(status) {
  if (status.metadata) {
    // ...
  }
});

Note: this is already supported for streaming calls.

@stanley-cheung stanley-cheung merged commit f00c167 into grpc:master Aug 9, 2018
@stanley-cheung stanley-cheung deleted the expose-unary-metadata branch August 9, 2018 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: response metadata
1 participant