Allow retained status message to be cleared

This commit is contained in:
Nick O'Leary 2014-06-21 22:43:40 +01:00
parent ed3be7f82e
commit 842e7cf5f5
1 changed files with 2 additions and 0 deletions

View File

@ -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) {