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

OnHeaders callback is not accessible. #291

Open
singerxt opened this issue Oct 26, 2021 · 2 comments
Open

OnHeaders callback is not accessible. #291

singerxt opened this issue Oct 26, 2021 · 2 comments
Labels

Comments

@singerxt
Copy link

Versions of relevant software used
0.15
What happened
Response headers are not accessible from the client because the header's callback is not exposed.

What you expected to happen

I should be able to have onHeaders callback provided by grpc_web library.

const response = client.listFiles(req, headers);
response.on('headers', (headers) => {
  console.log(headers);
});

How to reproduce it (as minimally and precisely as possible):

const response = client.listFiles(req, headers);
response.on('headers', (headers) => {
  console.log(headers);
});

will throw an unexpected errors.
@singerxt
Copy link
Author

singerxt commented Oct 28, 2021

I'm more than happy to fix it. However, I'm not sure if this repository is alive.

?

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant