From 91c8b93db3cbcb640d1dbbe26cc1871b310d4c89 Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Sun, 10 Aug 2025 23:14:13 +0300 Subject: [PATCH] wsUrl --- lib/src/Net/IIP/DistributedConnection.dart | 4 ++-- lib/src/Net/Sockets/WSocket.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/Net/IIP/DistributedConnection.dart b/lib/src/Net/IIP/DistributedConnection.dart index 9e2a633..c61fa84 100644 --- a/lib/src/Net/IIP/DistributedConnection.dart +++ b/lib/src/Net/IIP/DistributedConnection.dart @@ -223,7 +223,7 @@ class DistributedConnection extends NetworkConnection implements IStore { var secure = instance?.attributes.containsKey("secure") == true || instance?.attributes.containsKey("wss") == true; - var wsUrl = instance?.attributes["wsUrl"].toString() ?? ""; + var wsUrl = instance?.attributes["wsUrl"].toString() ?? "iip"; if (instance?.attributes.containsKey("autoReconnect") ?? false) autoReconnect = instance?.attributes["autoReconnect"] == true; @@ -291,7 +291,7 @@ class DistributedConnection extends NetworkConnection implements IStore { String? domain, bool useWebsocket = false, bool secureWebSocket = false, - String wsUrl = ""}) { + String wsUrl = "iip"}) { if (_openReply != null) throw AsyncException(ErrorType.Exception, 0, "Connection in progress"); diff --git a/lib/src/Net/Sockets/WSocket.dart b/lib/src/Net/Sockets/WSocket.dart index 1e2715d..e5b8837 100644 --- a/lib/src/Net/Sockets/WSocket.dart +++ b/lib/src/Net/Sockets/WSocket.dart @@ -50,7 +50,7 @@ class WSocket extends ISocket { IPEndPoint? _localEP, _remoteEP; - String wsUrl = ""; + String wsUrl = "iip"; bool begin() { if (began) return false;