Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1033

Node.js language target

    XMLWordPrintableJSON

Details

    • 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

        1. thrift_nodejs_lib.patch
          45 kB
          Wade Simmons
        2. thrift_nodejs.patch
          27 kB
          Wade Simmons

        Issue Links

          Activity

            People

              tjake T Jake Luciani
              wadey Wade Simmons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: