Problem: need a client API

Solution: add subscribe, send, recv methods to the client API.