api: pass api and client main to rx thread

No match.