-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to make rpc call via TAsyncClient #29
Comments
When you are generating the source code of a service for swift, make sure you use the async flag.
That will generate the necessary code for you to start using an AsyncClient for your service. |
AsyncClient can generated now, but trouble to use it via TAsyncTransportFactory, the protocol TAsyncTransport also need implemented or else TAsyncTransportFactory can not be instance, anyone can show a example code that make AsyncClient call thrift service ... thanks |
For the async client, you can do something like this assuming a service called
Then you can call the ping function by doing something like:
|
problem is my thrift server provide "ThriftProcessPoolServer" ... it seem also does not support THTTPSessionTransport |
Ah ok, check our README for the supported list of Transports and Protocols. Whichever transport and protocol you decide in your server, the client will have to match. |
I see, thanks a lots |
seem TAsyncClient is not completed yet ?
The text was updated successfully, but these errors were encountered: