ts-protoc-gen icon indicating copy to clipboard operation
ts-protoc-gen copied to clipboard

OnHeaders callback is not accessible.

Open singerxt opened this issue 4 years ago • 2 comments

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 avatar Oct 26 '21 20:10 singerxt

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

?

singerxt avatar Oct 28 '21 13:10 singerxt

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[bot] avatar Apr 17 '22 07:04 stale[bot]