Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix delegate #84

Merged
merged 4 commits into from
Mar 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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