Skip to content

Commit

Permalink
Merge pull request #84 from soledue/master
Browse files Browse the repository at this point in the history
fix delegate
  • Loading branch information
WrathChaos authored Mar 8, 2020
2 parents 73411fa + 59a99b6 commit 7039010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StompClientLib/Classes/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

0 comments on commit 7039010

Please sign in to comment.