Implement requestMsg() for client-server-communication to receive data from the server
Change-Id: I6399679449199a3f5e75ca47348b4fd875f08142
diff --git a/dev/demo/plugin-client.html b/dev/demo/plugin-client.html
index 0250c6c..3cce6de 100644
--- a/dev/demo/plugin-client.html
+++ b/dev/demo/plugin-client.html
@@ -27,7 +27,7 @@
function flood () {
var i = 0;
for (; i < 90; i++) {
- KorAPlugin._sendMsg({
+ KorAPlugin.sendMsg({
'action' : '-'
});
};
@@ -57,6 +57,7 @@
<li><a onclick="KorAPlugin.resize()">Resize</a></li>
<li><a onclick="KorAPlugin.sendMsg({'action':'pipe','service':'Glemm'})">Add Glemm</a></li>
<li><a onclick="flood()">Flood!</a></li>
+ <li><a onclick="KorAPlugin.requestMsg({'action':'get', 'key':'KQ'}, function (d) { document.write(JSON.stringify(d.value))})">Get KQ</a></li>
</ul>
<p style="width: 2000px">------------------------------------------------------------------------------------------------------------------------</p>
</body>