2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-05-06 12:02:57 +00:00
This commit is contained in:
Ahmed Zamil 2020-02-23 13:10:53 +03:00
parent 1405891985
commit c3ef064b19
2 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class DistributedConnection extends NetworkConnection with IStore
var sock = new TCPSocket(); var sock = new TCPSocket();
sock.connect(domain, port).then<dynamic>((x){ sock.connect(address, port).then<dynamic>((x){
assign(sock); assign(sock);
//rt.trigger(true); //rt.trigger(true);
}).error((x)=>_openReply.triggerError(x)); }).error((x)=>_openReply.triggerError(x));

View File

@ -10,6 +10,8 @@ main()
var x = await Warehouse.get("iip://localhost:5000/sys/su", {"username": "admin", "password": "1234" var x = await Warehouse.get("iip://localhost:5000/sys/su", {"username": "admin", "password": "1234"
, "domain": "example.com"}); , "domain": "example.com"});
x.instance.store.on("close", (x){ x.instance.store.on("close", (x){
print("Closed"); print("Closed");
}); });