lib/nodejs/examples/hello.html
This html file demonstrates Apache Thrift JavaScrpt RPC between a browser client to a node.js server. Clicking the buttons below will call the RPC functions hosted by the Apache Thrift server at localhost:8585. The file hello.js contains the JavaScript node.js server required. Here are the steps to get the example running:
[nodejs.org](http://nodejs.org)
$ npm install thrift
$ thrift -gen js -gen js:node hello.thrift
$ node hello.js
$ cp ...../thrift.js . (you should be able to use Bower to install the browser based Apache Thrift library in the near future.)
http://localhost:8585/hello.html
then click a button below to make an RPC call
Get Message from Node ServerDouble 25