Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
break;
}
if (this.responseHandlers.has(uuid)) {
- const { procedureName, res } = this.responseHandlers.get(uuid);
+ const { res } = this.responseHandlers.get(uuid);
res.writeHead(statusCode, { 'Content-Type': 'application/json' });
res.write(JSON.stringify(payload));
res.end();
return JSON.stringify([messageId, responsePayload] as ProtocolResponse);
}
- // Validate the raw data received from the WebSocket
- // TODO: should probably be moved to the ws verify clients callback
+ // Validate the raw data received from the UI server
private requestValidation(rawData: RawData | JsonType): ProtocolRequest {
// logger.debug(
// `${this.logPrefix(