Skip to content

Commit f3efe8e

Browse files
author
dborba
committed
Adding attribute annotation to delegate and class;
This commit adds @objc attribute annotation to StompClientLibDelegate and @objcMembers to StompClientLib to turn Objective-C runtime accessible to nativescript applications
1 parent ed11051 commit f3efe8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

StompClientLib/Classes/StompClientLib.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public enum StompAckMode {
5959
}
6060

6161
// Fundamental Protocols
62+
@objc
6263
public protocol StompClientLibDelegate: class {
6364
func stompClient(client: StompClientLib!, didReceiveMessageWithJSONBody jsonBody: AnyObject?, akaStringBody stringBody: String?, withHeader header:[String:String]?, withDestination destination: String)
6465

@@ -69,6 +70,7 @@ public protocol StompClientLibDelegate: class {
6970
func serverDidSendPing()
7071
}
7172

73+
@objcMembers
7274
public class StompClientLib: NSObject, SRWebSocketDelegate {
7375
var socket: SRWebSocket?
7476
var sessionId: String?

0 commit comments

Comments
 (0)