Client API to talk to wsmsgbroker