Thrift transport in javascript client

前端 未结 4 1807
盖世英雄少女心
盖世英雄少女心 2021-02-14 15:14

I\'m trying to build a javascript client for my Thrift server. The server is up and running and I can get calls to the server working with a PHP client. I just can\'t figure out

4条回答
  •  盖世英雄少女心
    2021-02-14 15:53

    The above answers have already given enough clarity.

    However to make things a bit more clear, assuming that your server is localhost and its running on port 8080.

    Let your project name be Tutorial_service and endpoint in your server project be teach_thrift then you have to pass URL as below

    var transport = new Thrift.Transport("http://localhost:8080/Tutorial_service/teach_thrift");
    

    It should keep you going.. :)

提交回复
热议问题