Skip to content
Snippets Groups Projects
Commit b9125082 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #5331 from murgatroid99/node_message_reflection_info

Add more reflection information to Node client classes
parents 9f791595 a3d7794d
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment