Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6
-
None
-
Patch Available
Description
This patch allows you to pass an option to the JavaScript compiler to make it compile sources that work with Node.JS
thrift --gen js:node ...
If you prefer, you can browse the individual patches on my github repo:
https://github.com/wadey/thrift/compare/trunk...nodejs-compiler-trunk
The Node.JS client is available here (wasn't sure if I should add it in this patch to the lib/ folder):
https://github.com/wadey/node-thrift
Here is a client and server example:
https://github.com/wadey/node-thrift/tree/master/examples
My company, SimpleGeo, has been using this code in production for multiple months and we haven't run into any major bugs that haven't already been fixed. I've also been chatting with someone who found the code on github and is using this code to talk with PHP (PHP Thrift client -> Node.JS Thrift server).
Let me know if you have any questions or concerns! I would love to see this make it in to 0.6; hopefully I am not too late for that.
Attachments
Attachments
Issue Links
- contains
-
THRIFT-1545 Generated javascript code uses "for in" for looping over arrays
- Closed
- is a clone of
-
THRIFT-806 NodeJS Bindings
- Closed