From 349332a313b6394ae475323177111048dbae9266 Mon Sep 17 00:00:00 2001 From: Hudson Date: Mon, 28 May 2018 18:49:49 -0700 Subject: [PATCH 1/3] Added a function for the new websocket request. --- nodejs/quip.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nodejs/quip.js b/nodejs/quip.js index 38dfe26..5bda1c4 100644 --- a/nodejs/quip.js +++ b/nodejs/quip.js @@ -343,6 +343,15 @@ Client.prototype.removeThreadMembers = function(options, callback) { this.call_('threads/remove-members', callback, args); }; +/** + * @param {{threadId: string, + * memberIds: Array.}} options + * @param {function(Error, Object)} callback + */ +Client.prototype.newWebsocket = function(callback) { + this.call_('websockets/new', callback); +}; + /** * @param {string} path * @param {function(Error, Object)} callback From ff52f2c1f7fc26f9122228bb70d39784c39f8bf6 Mon Sep 17 00:00:00 2001 From: Hudson Date: Mon, 28 May 2018 18:57:07 -0700 Subject: [PATCH 2/3] Fixed comment. --- nodejs/quip.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodejs/quip.js b/nodejs/quip.js index 5bda1c4..99a3908 100644 --- a/nodejs/quip.js +++ b/nodejs/quip.js @@ -344,8 +344,6 @@ Client.prototype.removeThreadMembers = function(options, callback) { }; /** - * @param {{threadId: string, - * memberIds: Array.}} options * @param {function(Error, Object)} callback */ Client.prototype.newWebsocket = function(callback) { From fb579c3a88e0e5c6607a7e2ce24e3e10411237f5 Mon Sep 17 00:00:00 2001 From: Hudson Date: Mon, 28 May 2018 18:59:56 -0700 Subject: [PATCH 3/3] Fixed punctuation. --- nodejs/quip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/quip.js b/nodejs/quip.js index 99a3908..c188252 100644 --- a/nodejs/quip.js +++ b/nodejs/quip.js @@ -346,7 +346,7 @@ Client.prototype.removeThreadMembers = function(options, callback) { /** * @param {function(Error, Object)} callback */ -Client.prototype.newWebsocket = function(callback) { +Client.prototype.newWebSocket = function(callback) { this.call_('websockets/new', callback); };