mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
ensure sessionExpiry(Interval) is applied
This commit is contained in:
parent
5365786386
commit
7d4c857a43
@ -474,7 +474,6 @@ module.exports = function(RED) {
|
|||||||
setIfHasProperty(opts, node, "protocolVersion", init);
|
setIfHasProperty(opts, node, "protocolVersion", init);
|
||||||
setIfHasProperty(opts, node, "keepalive", init);
|
setIfHasProperty(opts, node, "keepalive", init);
|
||||||
setIfHasProperty(opts, node, "cleansession", init);
|
setIfHasProperty(opts, node, "cleansession", init);
|
||||||
setIfHasProperty(opts, node, "sessionExpiry", init);
|
|
||||||
setIfHasProperty(opts, node, "topicAliasMaximum", init);
|
setIfHasProperty(opts, node, "topicAliasMaximum", init);
|
||||||
setIfHasProperty(opts, node, "maximumPacketSize", init);
|
setIfHasProperty(opts, node, "maximumPacketSize", init);
|
||||||
setIfHasProperty(opts, node, "receiveMaximum", init);
|
setIfHasProperty(opts, node, "receiveMaximum", init);
|
||||||
@ -484,6 +483,11 @@ module.exports = function(RED) {
|
|||||||
} else if (hasProperty(opts, "userProps")) {
|
} else if (hasProperty(opts, "userProps")) {
|
||||||
node.userProperties = opts.userProps;
|
node.userProperties = opts.userProps;
|
||||||
}
|
}
|
||||||
|
if (hasProperty(opts, "sessionExpiry")) {
|
||||||
|
node.sessionExpiryInterval = opts.sessionExpiry;
|
||||||
|
} else if (hasProperty(opts, "sessionExpiryInterval")) {
|
||||||
|
node.sessionExpiryInterval = opts.sessionExpiryInterval
|
||||||
|
}
|
||||||
|
|
||||||
function createLWT(topic, payload, qos, retain, v5opts, v5SubPropName) {
|
function createLWT(topic, payload, qos, retain, v5opts, v5SubPropName) {
|
||||||
let message = undefined;
|
let message = undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user