X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fmonitoring%2FAFB.js;h=59e68abcbdd78660902f488c4ce2e5e150626c42;hb=9ece61d2cbda88878b9f1e6a6e62d3d42cbdef00;hp=db03d9e86625d325c11644e8d40449f0da6bb3cd;hpb=0f1a3e89464a77d398ce89bf25abd7ea660c4b34;p=src%2Fapp-framework-binder.git diff --git a/test/monitoring/AFB.js b/test/monitoring/AFB.js index db03d9e8..59e68abc 100644 --- a/test/monitoring/AFB.js +++ b/test/monitoring/AFB.js @@ -21,7 +21,7 @@ if (typeof base != "object") var initial = { base: base.base || "api", - token: base.token || "hello", + token: base.token || initialtoken || "hello", host: base.host || window.location.host, url: base.url || undefined }; @@ -66,7 +66,7 @@ var AFB_websocket; var PROTO1 = "x-afb-ws-json1"; - AFB_websocket = function(onopen, onabort) { + AFB_websocket = function(on_open, on_abort) { var u = urlws; if (AFB_context.token) { u = u + '?x-afb-token=' + AFB_context.token; @@ -82,8 +82,8 @@ var AFB_websocket; this.ws.onerror = onerror.bind(this); this.ws.onclose = onclose.bind(this); this.ws.onmessage = onmessage.bind(this); - this.onopen = onopen; - this.onabort = onabort; + this.onopen = on_open; + this.onabort = on_abort; } function onerror(event) {