mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Allow retained status message to be cleared
This commit is contained in:
parent
ed3be7f82e
commit
842e7cf5f5
@ -78,6 +78,8 @@ function start() {
|
||||
function publish(topic,data,retain) {
|
||||
if (retain) {
|
||||
retained[topic] = data;
|
||||
} else {
|
||||
delete retained[topic];
|
||||
}
|
||||
lastSentTime = Date.now();
|
||||
activeConnections.forEach(function(conn) {
|
||||
|
Loading…
Reference in New Issue
Block a user