X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fmonitoring%2FAFB.js;h=e74fbe95d993415caf61e71ffa636c450843cd72;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=953fe96ab6786e575389aae1191eca75940064e6;hpb=e6908a2ee7b645517c062f2fd0419fcb3f4f976e;p=src%2Fapp-framework-binder.git diff --git a/test/monitoring/AFB.js b/test/monitoring/AFB.js index 953fe96a..e74fbe95 100644 --- a/test/monitoring/AFB.js +++ b/test/monitoring/AFB.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017-2019 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -125,16 +125,16 @@ var AFB_websocket; function fire(awaitens, name, data) { var a = awaitens[name]; if (a) - a.forEach(function(handler){handler(data);}); + a.forEach(function(handler){handler(data, name);}); var i = name.indexOf("/"); if (i >= 0) { a = awaitens[name.substring(0,i)]; if (a) - a.forEach(function(handler){handler(data);}); + a.forEach(function(handler){handler(data, name);}); } a = awaitens["*"]; if (a) - a.forEach(function(handler){handler(data);}); + a.forEach(function(handler){handler(data, name);}); } function reply(pendings, id, ans, offset) {