How to add call options in grpc client? #73
Answered
by
thesayyn
alienzhangyw
asked this question in
Q&A
-
There CallOptions in grpc calls. protoc-gen-ts/examples/grpc/client.ts Line 22 in 509e11c Should I write like this? const options = { deadline: Date.now() + 5000 };
client["add"](payload, options, callback); |
Beta Was this translation helpful? Give feedback.
Answered by
thesayyn
Jul 5, 2021
Replies: 2 comments 3 replies
-
You can pass it as a second argument. protoc-gen-ts does not do anything special thing for the grpc client |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alienzhangyw
-
there are some upcoming breaking changes for the server implementation though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass it as a second argument. protoc-gen-ts does not do anything special thing for the grpc client