- fix missing return value in api.sendEvent