You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Amit Prakash <am...@scaligent.com> on 2012/12/29 04:11:51 UTC

Re: tutorial for javascript

var transport = new Thrift.Transport("/thrift/service/tutorial/");

What is the string "/thrift/service/tutorial/" supposed to mean. Is it
supposed to point to the server?
If yes, how can I give a host port. I tried "host:port" and that seems to
throw an error.

Re: tutorial for javascript

Posted by Roger Meier <ro...@bufferoverflow.ch>.
Quoting Amit Prakash <am...@scaligent.com>:

> var transport = new Thrift.Transport("/thrift/service/tutorial/");
>
> What is the string "/thrift/service/tutorial/" supposed to mean. Is it
> supposed to point to the server?
> If yes, how can I give a host port. I tried "host:port" and that seems to
> throw an error.

please check the tutorial/js folder at
https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=tree;f=tutorial/js;hb=HEAD

do a
"make tutorialserver" or "ant tutorialserver"
to launch a thrift json server and webserver directly

-roger