new-style callback function (status node)

This commit is contained in:
Kunihiko Toumura 2019-11-29 09:40:17 +09:00
parent 0d0bf62fc4
commit 3f4de43b67
1 changed files with 3 additions and 2 deletions

View File

@ -21,8 +21,9 @@ module.exports = function(RED) {
RED.nodes.createNode(this,n);
var node = this;
this.scope = n.scope;
this.on("input", function(msg) {
this.send(msg);
this.on("input", function(msg, send, done) {
send(msg);
done();
});
}