mirror of https://github.com/grpc/grpc-node.git
Add more reflection information to Node client classes
This commit is contained in:
parent
cb1676a943
commit
287f60af57
|
@ -648,8 +648,8 @@ exports.makeClientConstructor = function(methods, serviceName) {
|
|||
var deserialize = attrs.responseDeserialize;
|
||||
Client.prototype[name] = requester_makers[method_type](
|
||||
attrs.path, serialize, deserialize);
|
||||
Client.prototype[name].serialize = serialize;
|
||||
Client.prototype[name].deserialize = deserialize;
|
||||
// Associate all provided attributes with the method
|
||||
_.assign(Client.prototype[name], attrs);
|
||||
});
|
||||
|
||||
return Client;
|
||||
|
|
|
@ -146,6 +146,8 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service,
|
|||
path: prefix + method.name,
|
||||
requestStream: method.requestStream,
|
||||
responseStream: method.responseStream,
|
||||
requestType: method.resolvedRequestType,
|
||||
responseType: method.resolvedResponseType,
|
||||
requestSerialize: serializeCls(method.resolvedRequestType.build()),
|
||||
requestDeserialize: deserializeCls(method.resolvedRequestType.build(),
|
||||
binaryAsBase64, longsAsStrings),
|
||||
|
|
Loading…
Reference in New Issue