X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2Fagent%2Fclient.html;h=123779c206a80e5ac8cfe7ce1920965a73f329cf;hb=6f757f4992deaa887e3b283956b90b9e2bf8fadf;hp=27ddc6e59ffb3340ebc0f9971a35b02d37f44f97;hpb=236c26d85a85cccc2cc43f8678524e6de3c909b4;p=contrib%2Fcloudeebus.git 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);