Skip to content

Commit

Permalink
Add service and method in grpc-web unary response (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
minimal1 authored Jan 19, 2024
1 parent cc66624 commit 5f05173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/connect-web/src/connect-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function createConnectTransport(
response.headers,
);

return <UnaryResponse<I, O>>{
return {
stream: false,
service,
method,
Expand Down
4 changes: 3 additions & 1 deletion packages/connect-web/src/grpc-web-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ export function createGrpcWebTransport(
if (message === undefined) {
throw "missing message";
}
return <UnaryResponse<I, O>>{
return {
stream: false,
service,
method,
header: response.headers,
message,
trailer,
Expand Down

0 comments on commit 5f05173

Please sign in to comment.