Skip to content

Commit 52c6852

Browse files
committed
Support for Spring Boot 2.1.x
1 parent 56566ad commit 52c6852

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

StompClientLib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'StompClientLib'
11-
s.version = '1.3.3'
11+
s.version = '1.3.4'
1212
s.summary = 'Simple STOMP Client library. Swift 3, 4, 4.2, 5 compatible'
1313
s.swift_version = '4.0', '4.2', '5.0'
1414

StompClientLib/Classes/StompClientLib.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ public class StompClientLib: NSObject, SRWebSocketDelegate {
133133
*/
134134
private func connect() {
135135
if socket?.readyState == .OPEN {
136+
// Support for Spring Boot 2.1.x
137+
connectionHeaders = [StompCommands.commandHeaderAcceptVersion:"1.1,1.2"]
136138
// at the moment only anonymous logins
137139
self.sendFrame(command: StompCommands.commandConnect, header: connectionHeaders, body: nil)
138140
} else {

0 commit comments

Comments
 (0)