Open
Description
The example given is:
const rpcImpl = function(method, requestData, callback) {
client.makeUnaryRequest(
method.name,
arg => arg,
arg => arg,
requestData,
callback
)
}
That gives a method call to the path "SayHello" which won't actually work against the helloworld example server - it needs to include the namespace and service in the path: "/helloworld.Greeter/SayHello".
The below seems to work for me:
const rpcImpl = function (method, requestData, callback) {
const service = method.parent, namespace = service.parent;
client.makeUnaryRequest(
"/" + namespace.name + "." + service.name + "/" + method.name,
arg => arg,
arg => arg,
requestData,
callback
)
}
Metadata
Metadata
Assignees
Labels
No labels