You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but I was wondering if it's possible to also pass a CallOptions object to the client constructor so that all calls made through a client are intercepted.
According to the grpc-js docs, this should be possible, although I'm struggling to reconcile that with the grpc-js code - it seems that makeGenericClientConstructor accepts a classOptions but it's untyped and apparently unused from what I can see...but I think I'm missing something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there!
Thanks so much for this project - the promise based client generation is fantastic.
I can see that it's possible to pass an interceptor or interceptor provider to a call as it accepts a
CallOptions
:but I was wondering if it's possible to also pass a
CallOptions
object to the client constructor so that all calls made through a client are intercepted.According to the grpc-js docs, this should be possible, although I'm struggling to reconcile that with the grpc-js code - it seems that
makeGenericClientConstructor
accepts aclassOptions
but it's untyped and apparently unused from what I can see...but I think I'm missing something.Is this a supported scenario?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions