Adding RPC listener to clients