2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-05-06 12:32:58 +00:00
esiur-js/examples/test-debug.html
2017-09-18 03:09:06 +03:00

37 lines
875 B
HTML

<html>
<head>
<script src="../build/esiur-debug.js"></script>
<script>
var demo;
class MyStore extends IStore
{
}
function init() {
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
Warehouse.put(con, "remote");
con.on("ready", function (d) {
con.get("db/my").then(function(rt){
console.log("Object received.");
demo = rt;
rt.on("LevelUp", function(v){
console.log("LevelUp", v);
});
rt.Add(3);
});
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
}
</script>
</head>
<body onload="init()">
</body>
</html>