commit | 1ab096c80af1a2bca73aef78675de914a1834fd9 | [log] [tgz] |
---|---|---|
author | penenin <penenin@users.noreply.github.com> | Mon May 18 12:27:31 2020 -0700 |
committer | GitHub <noreply@github.com> | Mon May 18 20:27:31 2020 +0100 |
tree | e560d0e5f2fd2f76bee7c94e9e3d16789c34ab31 | |
parent | dce229911cd61a441961df2219623fb166b5d139 [diff] [blame] |
THRIFT-5185: Support for using WebSockets as a server transport Client: cpp
diff --git a/lib/nodejs/test/client.js b/lib/nodejs/test/client.js index 49e3a5e..31ea06e 100644 --- a/lib/nodejs/test/client.js +++ b/lib/nodejs/test/client.js
@@ -69,6 +69,11 @@ type = "http"; } +if (program.transport === "websocket") { + program.transport = "buffered"; + type = "websocket"; +} + const options = { transport: helpers.transports[program.transport], protocol: helpers.protocols[program.protocol]