Skip to content

Commit

Permalink
PR Merge #84: Weak Delegate Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Mar 8, 2020
1 parent 7039010 commit fdf81fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/StompClientLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion StompClientLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'StompClientLib'
s.version = '1.3.7'
s.version = '1.3.8'
s.summary = 'Simple STOMP Client library. Swift 3, 4, 4.2, 5 compatible'
s.swift_version = '4.0', '4.2', '5.0'

Expand Down

0 comments on commit fdf81fe

Please sign in to comment.