How to add call options in grpc client? #73
-
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.
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.
-
there are some upcoming breaking changes for the server implementation though. https://github.com/thesayyn/protoc-gen-ts/blob/32cf5f5bcd92aecb356532ee5bf8042202f68f95/docs/rpc.md |
Beta Was this translation helpful? Give feedback.
You can pass it as a second argument. protoc-gen-ts does not do anything special thing for the grpc client