aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/index.js
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-05-11 15:13:57 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2017-05-11 15:13:57 -0700
commit9266975c82b2388e713076c4fa5f2ffb5b72dc63 (patch)
treeefa026f444cbc9a866528a402dd2faa78b1999b6 /src/node/index.js
parent738be24db4b1df10b90f40c8011a47ec78e4f1f5 (diff)
parent45b89fb11ca3cd524787aeba7a1270f744a1256c (diff)
Merge branch 'master' of https://github.com/grpc/grpc into more-bm-diff
Diffstat (limited to 'src/node/index.js')
-rw-r--r--src/node/index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/node/index.js b/src/node/index.js
index 071bfd7927..76ab1744b0 100644
--- a/src/node/index.js
+++ b/src/node/index.js
@@ -31,6 +31,10 @@
*
*/
+/**
+ * @module
+ */
+
'use strict';
var path = require('path');
@@ -256,5 +260,10 @@ exports.getClientChannel = client.getClientChannel;
exports.waitForClientReady = client.waitForClientReady;
exports.closeClient = function closeClient(client_obj) {
- client.getClientChannel(client_obj).close();
+ client.Client.prototype.close.apply(client_obj);
};
+
+/**
+ * @see module:src/client.Client
+ */
+exports.Client = client.Client;