Skip to content
Snippets Groups Projects
Commit cdc2a738 authored by murgatroid99's avatar murgatroid99
Browse files

Indicated that serialize and deserialize are optional

parent 63e1bf31
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,8 @@ util.inherits(GrpcClientStream, Duplex); ...@@ -45,8 +45,8 @@ util.inherits(GrpcClientStream, Duplex);
* from stream.Duplex. * from stream.Duplex.
* @constructor * @constructor
* @param {grpc.Call} call Call object to proxy * @param {grpc.Call} call Call object to proxy
* @param {function(*):Buffer} serialize Serialization function for requests * @param {function(*):Buffer=} serialize Serialization function for requests
* @param {function(Buffer):*} deserialize Deserialization function for * @param {function(Buffer):*=} deserialize Deserialization function for
* responses * responses
*/ */
function GrpcClientStream(call, serialize, deserialize) { function GrpcClientStream(call, serialize, deserialize) {
......
...@@ -47,8 +47,9 @@ util.inherits(GrpcServerStream, Duplex); ...@@ -47,8 +47,9 @@ util.inherits(GrpcServerStream, Duplex);
* from stream.Duplex. * from stream.Duplex.
* @constructor * @constructor
* @param {grpc.Call} call Call object to proxy * @param {grpc.Call} call Call object to proxy
* @param {function(*):Buffer} serialize Serialization function for responses * @param {function(*):Buffer=} serialize Serialization function for responses
* @param {function(Buffer):*} deserialize Deserialization function for requests * @param {function(Buffer):*=} deserialize Deserialization function for
* requests
*/ */
function GrpcServerStream(call, serialize, deserialize) { function GrpcServerStream(call, serialize, deserialize) {
Duplex.call(this, {objectMode: true}); Duplex.call(this, {objectMode: true});
......
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