mirror of
https://github.com/esiur/esiur-js.git
synced 2025-05-06 12:32:58 +00:00
37 lines
1017 B
HTML
37 lines
1017 B
HTML
<html>
|
|
<head>
|
|
<script src="../build/esiur.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> |