From c3ef064b197d0d0058bd2ff25b1b358f2f14f847 Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Sun, 23 Feb 2020 13:10:53 +0300 Subject: [PATCH] domain --- lib/src/Net/IIP/DistributedConnection.dart | 2 +- test/main.dart | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/Net/IIP/DistributedConnection.dart b/lib/src/Net/IIP/DistributedConnection.dart index fb1251b..8ad87c9 100644 --- a/lib/src/Net/IIP/DistributedConnection.dart +++ b/lib/src/Net/IIP/DistributedConnection.dart @@ -197,7 +197,7 @@ class DistributedConnection extends NetworkConnection with IStore var sock = new TCPSocket(); - sock.connect(domain, port).then((x){ + sock.connect(address, port).then((x){ assign(sock); //rt.trigger(true); }).error((x)=>_openReply.triggerError(x)); diff --git a/test/main.dart b/test/main.dart index 7550d7d..14134b4 100644 --- a/test/main.dart +++ b/test/main.dart @@ -9,6 +9,8 @@ main() // connect to the server var x = await Warehouse.get("iip://localhost:5000/sys/su", {"username": "admin", "password": "1234" , "domain": "example.com"}); + + x.instance.store.on("close", (x){ print("Closed");