mirror of
				https://github.com/esiur/esiur-js.git
				synced 2025-10-29 17:10:30 +00:00 
			
		
		
		
	Esiur 1.2.3
This commit is contained in:
		| @@ -1,37 +1,8 @@ | ||||
| <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", "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(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> | ||||
|  | ||||
| <head> | ||||
|     <script src='test.js' type="module"></script> | ||||
| </head> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user