Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"[%s] An error occurred on the session for request/response links for " +
"$management: %O",
id,
ehError
);
}
};
const sropt: SenderOptions = { target: { address: this.address } };
logger.verbose(
"[%s] Creating sender/receiver links on a session for $management endpoint with " +
"srOpts: %o, receiverOpts: %O.",
this._context.connectionId,
sropt,
rxopt
);
this._mgmtReqResLink = await RequestResponseLink.create(
this._context.connection,
sropt,
rxopt
);
this._mgmtReqResLink.sender.on(SenderEvents.senderError, (context: EventContext) => {
const id = context.connection.options.id;
const ehError = translate(context.sender!.error!);
logger.verbose("[%s] An error occurred on the $management sender link.. %O", id, ehError);
});
this._mgmtReqResLink.receiver.on(ReceiverEvents.receiverError, (context: EventContext) => {
const id = context.connection.options.id;
const ehError = translate(context.receiver!.error!);
logger.verbose(
"[%s] An error occurred on the $management receiver link.. %O",
id,
ehError