Skip to content

Commit

Permalink
PR Merged: #62
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Aug 6, 2019
1 parent 65ea7fa commit 73b8498
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Example/StompClientLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct StompCommands {
static let controlChar = String(format: "%C", arguments: [0x00])

// Ack Mode
static let ackClientIndividual = "client-individual"
static let ackClient = "client"
static let ackAuto = "auto"
// Header Commands
Expand All @@ -35,7 +36,7 @@ struct StompCommands {
static let commandHeaderContentType = "content-type"
static let commandHeaderAck = "ack"
static let commandHeaderTransaction = "transaction"
static let commandHeaderMessageId = "message-id"
static let commandHeaderMessageId = "id"
static let commandHeaderSubscription = "subscription"
static let commandHeaderDisconnected = "disconnected"
static let commandHeaderHeartBeat = "heart-beat"
Expand All @@ -54,6 +55,7 @@ struct StompCommands {
public enum StompAckMode {
case AutoMode
case ClientMode
case ClientIndividualMode
}

// Fundamental Protocols
Expand Down Expand Up @@ -167,7 +169,7 @@ public class StompClientLib: NSObject, SRWebSocketDelegate {
} else {
let parts = line.components(separatedBy: ":")
if let key = parts.first {
headers[key] = parts.last
headers[key] = parts.dropFirst().joined(separator: ":")
}
}
}
Expand Down Expand Up @@ -377,6 +379,9 @@ public class StompClientLib: NSObject, SRWebSocketDelegate {
case StompAckMode.ClientMode:
ack = StompCommands.ackClient
break
case StompAckMode.ClientIndividualMode:
ack = StompCommands.ackClientIndividual
break
default:
ack = StompCommands.ackAuto
break
Expand Down
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.5'
s.version = '1.3.6'
s.summary = 'Simple STOMP Client library. Swift 3, 4, 4.2, 5 compatible'
s.swift_version = '4.0', '4.2', '5.0'

Expand Down

0 comments on commit 73b8498

Please sign in to comment.