From cdc2a738c333cc63bd66a546929f41e358af6ab9 Mon Sep 17 00:00:00 2001
From: murgatroid99 <michael.lumish@gmail.com>
Date: Wed, 21 Jan 2015 17:26:04 -0800
Subject: [PATCH] Indicated that serialize and deserialize are optional

---
 src/node/client.js | 4 ++--
 src/node/server.js | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/node/client.js b/src/node/client.js
index fe7e07e29c..f913b06f29 100644
--- a/src/node/client.js
+++ b/src/node/client.js
@@ -45,8 +45,8 @@ util.inherits(GrpcClientStream, Duplex);
  * from stream.Duplex.
  * @constructor
  * @param {grpc.Call} call Call object to proxy
- * @param {function(*):Buffer} serialize Serialization function for requests
- * @param {function(Buffer):*} deserialize Deserialization function for
+ * @param {function(*):Buffer=} serialize Serialization function for requests
+ * @param {function(Buffer):*=} deserialize Deserialization function for
  *     responses
  */
 function GrpcClientStream(call, serialize, deserialize) {
diff --git a/src/node/server.js b/src/node/server.js
index 27a18f5228..eca20aa5fd 100644
--- a/src/node/server.js
+++ b/src/node/server.js
@@ -47,8 +47,9 @@ util.inherits(GrpcServerStream, Duplex);
  * from stream.Duplex.
  * @constructor
  * @param {grpc.Call} call Call object to proxy
- * @param {function(*):Buffer} serialize Serialization function for responses
- * @param {function(Buffer):*} deserialize Deserialization function for requests
+ * @param {function(*):Buffer=} serialize Serialization function for responses
+ * @param {function(Buffer):*=} deserialize Deserialization function for
+ *     requests
  */
 function GrpcServerStream(call, serialize, deserialize) {
   Duplex.call(this, {objectMode: true});
-- 
GitLab