I have following interfaces.
interface Server {
void subscribe(in Client client);
};
interface Client {
void ping();
void pong();
};
On initialization, client will connect to server and call subscribe(this). Then server will call time to time methods ping() or pong() on client. However, this will not work if client resides behind the NAT. What are possible workarounds for this problem?
Does it possible to utilize TCP connection created by client for calls server -> client? please advise.