You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/MQTT/Client.swift
+24-22
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,9 @@ open class MQTTClient:@unchecked Sendable{
31
31
publicvardelegateQueue:DispatchQueue
32
32
/// message delegate
33
33
public weak vardelegate:MQTTDelegate?
34
-
privateletnotify=NotificationCenter()
34
+
/// auto create when some observer has been added
35
+
privatevarnotify:NotificationCenter?
36
+
/// internal network process queue
35
37
privateletqueue:DispatchQueue
36
38
//--- Keep safely by sharing a same status lock ---
37
39
privateletsafe=Safely()//status safe lock
@@ -850,46 +852,46 @@ extension MQTTClient{
850
852
/// - selector: callback selector
851
853
/// - Important:Note that this operation will strongly references `observer`. The observer must be removed when not in use. Don't add `self`. If really necessary please use `delegate`
0 commit comments