summaryrefslogtreecommitdiffstats
path: root/test/monitoring
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-12-19 14:30:58 +0100
committerJose Bollo <jose.bollo@iot.bzh>2020-01-03 16:53:38 +0100
commit18d28239330adad61bd2ed9e928673472ecf79dc (patch)
treeccc5d2c517664e9b5dec78dbaa64c34e6e69ad71 /test/monitoring
parentf3d1f19ae308cc0559728c0ccf6281cbce5ee37c (diff)
AFB.js: pass event name
The event name is given at second position, preserving existing code and making its use optionnal. Bug-AGL: SPEC-3069 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: Ieeed1762977b990c139d56c4d78e2b539d6927c6
Diffstat (limited to 'test/monitoring')
-rw-r--r--test/monitoring/AFB.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monitoring/AFB.js b/test/monitoring/AFB.js
index 953fe96a..227b1a97 100644
--- a/test/monitoring/AFB.js
+++ b/test/monitoring/AFB.js
@@ -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) {