- ?.requestHandler(this.buildProtocolRequest(uuid, procedureName, body ?? {}))
- .catch(() => {
- /* Error caught by AbstractUIService */
- });
- });
+ ?.requestHandler(
+ this.buildProtocolRequest(
+ uuid,
+ procedureName,
+ body ?? Constants.EMPTY_FROZEN_OBJECT
+ )
+ )
+ .then((protocolResponse?: ProtocolResponse) => {
+ if (protocolResponse != null) {
+ this.sendResponse(protocolResponse)
+ }
+ })
+ .catch(Constants.EMPTY_FUNCTION)
+ })