Indicated that serialize and deserialize are optional

pull/155/head
murgatroid99 10 years ago
parent 63e1bf313b
commit cdc2a738c3
  1. 4
      src/node/client.js
  2. 5
      src/node/server.js

@ -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);
* 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});

Loading…
Cancel
Save