damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 2901cc860f4cd6218978c852ec2a73e24364b4a6
parent 3db13ae1710217f4b3c335e4f8ce79ce8e81b28d
Author: Bryan Montz <bryanmontz@me.com>
Date:   Sat, 17 Jun 2023 07:19:07 -0500

make RelayConnection's state observable

Diffstat:
Mdamus/Nostr/RelayConnection.swift | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/damus/Nostr/RelayConnection.swift b/damus/Nostr/RelayConnection.swift @@ -37,9 +37,9 @@ public struct RelayURL: Hashable { } } -final class RelayConnection { - private(set) var isConnected = false - private(set) var isConnecting = false +final class RelayConnection: ObservableObject { + @Published private(set) var isConnected = false + @Published private(set) var isConnecting = false private(set) var last_connection_attempt: TimeInterval = 0 private(set) var last_pong: Date? = nil