Skip to content

Commit da5d4db

Browse files
committed
New Example is here with its GIF
1 parent c994ea2 commit da5d4db

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# StompClientLib
22

33
<p align="center">
4-
<img width="200" height="200" src="https://github.com/WrathChaos/StompClientLib/blob/master/Screenshots/socket.png">
4+
<img width="200" height="200" src="Screenshots/socket.png">
55
</p>
66

77
<p align="center">
@@ -37,7 +37,10 @@ alt="Pod Version">
3737
alt="Issues">
3838
</a>
3939
</p>
40-
40+
<p align="center">
41+
<img alt="Swift 5+ StompClient Library"
42+
src="Screenshots/StompClientLib-Example.gif" width="500px" />
43+
</p>
4144
## Introduction
4245

4346
StompClientLib is a stomp client in Swift. It uses Facebook's [ SocketRocket ](https://github.com/facebook/SocketRocket) as a websocket dependency. SocketRocket is written in Objective-C but StompClientLib's STOMP part is written in Swift and its usage is Swift. You can use this library in your Swift 5+, 4+ and 3+ projects.
42 MB
Loading

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?

StompClientLibExample/StompClientLib.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public protocol StompClientLibDelegate: class {
7070
func serverDidSendPing()
7171
}
7272

73+
@objcMembers
7374
public class StompClientLib: NSObject, SRWebSocketDelegate {
7475
var socket: SRWebSocket?
7576
var sessionId: String?

0 commit comments

Comments
 (0)