Adapter base, http client and event emmitter