From 6f757f4992deaa887e3b283956b90b9e2bf8fadf Mon Sep 17 00:00:00 2001 From: Frederic PAUT Date: Wed, 3 Jul 2013 15:03:16 +0200 Subject: [PATCH] tracing dictionnary result one time only --- doc/agent/client.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/agent/client.html b/doc/agent/client.html index 27ddc6e..123779c 100644 --- a/doc/agent/client.html +++ b/doc/agent/client.html @@ -48,13 +48,15 @@ function gotDictResult(result) { function gotDivResult(result) { cloudeebus.log("gotDivResult: " + result); - var dictionary = {Name: "Mickey", - Sisters: [""], - Married: true, - Divorced: 0, - Friends: ["Donald", "Dingo"], - Others: [""]}; - sampleProxy.Variant(dictionary).then(gotDictResult,errorCB); + if (result % 1 == 0) { + var dictionary = {Name: "Mickey", + Sisters: [""], + Married: true, + Divorced: 0, + Friends: ["Donald", "Dingo"], + Others: [""]}; + sampleProxy.Variant(dictionary).then(gotDictResult,errorCB); + } // sampleProxy.Release(); } @@ -88,7 +90,7 @@ function connectSuccess() { cloudeebus.SessionBus().getObject("org.cloudeebus.Sample", "/org/cloudeebus/Sample", gotProxy, errorCB); } -cloudeebus.connect("ws://localhost:9002", manifest, connectSuccess, errorCB); +cloudeebus.connect("ws://localhost:9003", manifest, connectSuccess, errorCB);
-- 2.7.4