THRIFT-2511 Node.js compact protocol
Client: Node
Patch: Randy Abernethy
Adds Compact Protocol to Node.js, tests in testAll.sh and repairs all
library JSHint warnings.
diff --git a/lib/nodejs/test/client.js b/lib/nodejs/test/client.js
index 8813f91..d57676e 100644
--- a/lib/nodejs/test/client.js
+++ b/lib/nodejs/test/client.js
@@ -41,6 +41,8 @@
var protocol = thrift.TBinaryProtocol;
if (program.protocol === "json") {
protocol = thrift.TJSONProtocol;
+} else if (program.protocol === "compact") {
+ protocol = thrift.TCompactProtocol;
}
var transport = thrift.TBufferedTransport;