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

Add .on(metadata,...) callback to distinguish initial metadata #777

Merged
merged 2 commits into from
Apr 6, 2020

Conversation

stanley-cheung
Copy link
Collaborator

@stanley-cheung stanley-cheung commented Apr 6, 2020

In gRPC, there's a concept difference between the initial metadata and the trailing metadata. This PR added the .on('metadata', ...) callback so that the client can receive the initial metadata. The trailing metadata will continue to be available as on('status', (status) => // status.metadata ).

Fixes #662

@stanley-cheung stanley-cheung merged commit 6e2a187 into grpc:master Apr 6, 2020
@stanley-cheung stanley-cheung deleted the add-metadata-callback branch April 6, 2020 22:35
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.

Cannot retrieve gRPC metadata from responses
1 participant