2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 15:23:11 +00:00

Esiur 1.2.3

This commit is contained in:
2019-07-15 22:01:38 +03:00
parent fdfa690b23
commit d27cf47014
37 changed files with 240 additions and 16051 deletions

View File

@ -1,41 +1,18 @@
var demo;
import IStore from '../src/Resource/IStore.js';
import wh from '../src/Resource/Warehouse.js';
import wh from '../src/esiur.js';
class MyStore extends IStore
{
}
wh.get("iip://localhost:5001/db/my", {username: "demo", password: "1234"})
.then(x=>{
console.log("connected", x);
wh.get("iip://localhost:5001/db/my").then(x=>{
console.log("connected", x);
}).error(x=>{
console.log("error", x);
});
/*
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "demo", "1234");
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(a, b, c){
console.log("LevelUp", a, b, c);
});
rt.Add(3);
rt.Divide({nominator: 10, denominator: 50}).then(x=>{
console.log(x);
});
});
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
*/
window.x = x;
}).catch(x=>{
console.log("error", x);
});