THRIFT-2964: nodejs file breakout
Client: NodeJS
Patch: Andrew de Andrade
Moves protocols and transports (among others) into seperate files.
diff --git a/lib/nodejs/test/ws_client.js b/lib/nodejs/test/ws_client.js
index 4573246..93b93b7 100644
--- a/lib/nodejs/test/ws_client.js
+++ b/lib/nodejs/test/ws_client.js
@@ -40,7 +40,7 @@
var protocol = thrift.TBinaryProtocol;
if (program.protocol === "json") {
protocol = thrift.TJSONProtocol;
-}
+}
var transport = thrift.TBufferedTransport;
if (program.transport === "framed") {
@@ -56,7 +56,7 @@
if (program.ssl) {
options.wsOptions = { rejectUnauthorized: false };
options.secure = true;
-}
+}
var connection = thrift.createWSConnection("localhost", 9090, options);
connection.open();
@@ -71,7 +71,7 @@
if (program.promise) {
console.log(" --Testing promise style client");
testDriver = ThriftTestDriverPromise;
-}
+}
testDriver(client, function (status) {
console.log(status);
process.exit(0);