@gatling.io/mqtt
Version:
Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).
18 lines (17 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LastWill = exports.wrapLastWillBuilder = void 0;
const core_1 = require("@gatling.io/core");
const jvm_types_1 = require("@gatling.io/jvm-types");
const wrapLastWillBuilder = (_underlying) => ({
_underlying,
qosAtMostOnce: () => (0, exports.wrapLastWillBuilder)(_underlying.qosAtMostOnce()),
qosAtLeastOnce: () => (0, exports.wrapLastWillBuilder)(_underlying.qosAtLeastOnce()),
qosExactlyOnce: () => (0, exports.wrapLastWillBuilder)(_underlying.qosExactlyOnce()),
retain: (newRetain) => (0, exports.wrapLastWillBuilder)(_underlying.retain(newRetain))
});
exports.wrapLastWillBuilder = wrapLastWillBuilder;
const LastWill = (topic, message) => typeof topic === "function"
? (0, exports.wrapLastWillBuilder)(jvm_types_1.MqttDsl.LastWill((0, core_1.underlyingSessionTo)(topic), message._underlying))
: (0, exports.wrapLastWillBuilder)(jvm_types_1.MqttDsl.LastWill(topic, message._underlying));
exports.LastWill = LastWill;