Skip to content

Commit

Permalink
Support for Spring Boot 2.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Jul 19, 2019
1 parent 56566ad commit 52c6852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion StompClientLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'StompClientLib'
s.version = '1.3.3'
s.version = '1.3.4'
s.summary = 'Simple STOMP Client library. Swift 3, 4, 4.2, 5 compatible'
s.swift_version = '4.0', '4.2', '5.0'

Expand Down
2 changes: 2 additions & 0 deletions StompClientLib/Classes/StompClientLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public class StompClientLib: NSObject, SRWebSocketDelegate {
*/
private func connect() {
if socket?.readyState == .OPEN {
// Support for Spring Boot 2.1.x
connectionHeaders = [StompCommands.commandHeaderAcceptVersion:"1.1,1.2"]
// at the moment only anonymous logins
self.sendFrame(command: StompCommands.commandConnect, header: connectionHeaders, body: nil)
} else {
Expand Down

0 comments on commit 52c6852

Please sign in to comment.