I use Apache Thrift to define a protocol. I would like the client to receive asynchronous messages from the server.
service ServerService {
oneway void async_server_hello(1: string message_from_client);
string sync_server_hello(1: string message_from_client);
}
service ClientService { // how to use it from the server side?
oneway void async_client_hello(1: string message_from_server);
}
I know how to connect to the server, send sync and async messages to the server, but I don't know how to send async messages from the server to the connected client.
(Python or Erlang code is preferable, but any other language will do)