- const [requestId] = request as ProtocolRequest;
- this.responseHandlers.set(requestId, ws);
- this.uiServices.get(version)?.requestHandler(request).catch(Constants.EMPTY_FUNCTION);
- });
+ const [requestId] = request
+ this.responseHandlers.set(requestId, ws)
+ this.uiServices
+ .get(version)
+ ?.requestHandler(request)
+ .then((protocolResponse?: ProtocolResponse) => {
+ if (protocolResponse != null) {
+ this.sendResponse(protocolResponse)
+ }
+ })
+ .catch(Constants.EMPTY_FUNCTION)
+ })