From a1d89bfd80fb687fd8f1fbad48c9354393dd0059 Mon Sep 17 00:00:00 2001 From: soledue Date: Thu, 5 Mar 2020 14:05:46 +0100 Subject: [PATCH 1/4] Update StompClientLib.swift --- StompClientLib/Classes/StompClientLib.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StompClientLib/Classes/StompClientLib.swift b/StompClientLib/Classes/StompClientLib.swift index 8ab52c2..3b68b12 100755 --- a/StompClientLib/Classes/StompClientLib.swift +++ b/StompClientLib/Classes/StompClientLib.swift @@ -72,7 +72,7 @@ public protocol StompClientLibDelegate { public class StompClientLib: NSObject, SRWebSocketDelegate { var socket: SRWebSocket? var sessionId: String? - var delegate: StompClientLibDelegate? + weak var delegate: StompClientLibDelegate? var connectionHeaders: [String: String]? public var connection: Bool = false public var certificateCheckEnabled = true From ab26dca7c7fce3392ddc63a2590350c42a8ebc1b Mon Sep 17 00:00:00 2001 From: soledue Date: Thu, 5 Mar 2020 14:20:30 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05cb0d7..a995dab 100755 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ pod "StompClientLib" #### Carthage ```ruby -github "WrathChaos/StompClientLib" +github "soledue/StompClientLib" ``` ## Usage From 66d32fd1df765cd8bf6b6c690bff75bc657b0b65 Mon Sep 17 00:00:00 2001 From: soledue Date: Thu, 5 Mar 2020 14:56:42 +0100 Subject: [PATCH 3/4] Update StompClientLib.swift --- StompClientLib/Classes/StompClientLib.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StompClientLib/Classes/StompClientLib.swift b/StompClientLib/Classes/StompClientLib.swift index 3b68b12..c6f1b67 100755 --- a/StompClientLib/Classes/StompClientLib.swift +++ b/StompClientLib/Classes/StompClientLib.swift @@ -59,7 +59,7 @@ public enum StompAckMode { } // Fundamental Protocols -public protocol StompClientLibDelegate { +public protocol StompClientLibDelegate: class { func stompClient(client: StompClientLib!, didReceiveMessageWithJSONBody jsonBody: AnyObject?, akaStringBody stringBody: String?, withHeader header:[String:String]?, withDestination destination: String) func stompClientDidDisconnect(client: StompClientLib!) From 59a99b620e5b641336a4b8c0e8d8cb7566f40d41 Mon Sep 17 00:00:00 2001 From: soledue Date: Thu, 5 Mar 2020 15:03:22 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a995dab..05cb0d7 100755 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ pod "StompClientLib" #### Carthage ```ruby -github "soledue/StompClientLib" +github "WrathChaos/StompClientLib" ``` ## Usage