-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use with grpc.Server? #1381
Comments
@dinfer |
There doesn't appear to be any good documentation on this in the API Documents or README, The example in the README is for a client object. I am looking for a way to do this as well. |
After loading the const serviceDefinition = packageObject.package.names.ServiceName.service;
const server = new grpc.Server();
server.addService(serviceDefinition, serviceImplementation); |
Thank you @murgatroid99 i think that answers the original question then. |
If you're using proto-loader does that mean we can't use |
That's right. The code generated by |
So for the time being I guess we have to work without proper types. I haven't done it for a while so I can't really remember how, but is it possible for you @murgatroid99 to provide a link to a
|
The PR I linked has been published as a prerelease version of If that doesn't work for you, I don't know what specific type check you want to bypass, but in general if a type definition isn't working for you you can just typecast it yourself. |
I need to dynamically bind functions to GRPC services, but I cannot find document to describe how to do that.
The wiki page API Document link is broken. (the link)
The example in the README is not used with
grpc.Server
The text was updated successfully, but these errors were encountered: