Skip to content

Commit ab5cccc

Browse files
committed
fix binary in dictionaries
1 parent 58362f6 commit ab5cccc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Socket.IO-Client-Swift.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Socket.IO-Client-Swift"
3-
s.version = "1.1.2"
3+
s.version = "1.1.3"
44
s.summary = "Socket.IO-client for Swift"
55
s.description = <<-DESC
66
Socket.IO-client for Swift.
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.author = { "Erik" => "[email protected]" }
1313
s.ios.deployment_target = '8.0'
1414
s.osx.deployment_target = '10.10'
15-
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.1.2' }
15+
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.1.3' }
1616
s.source_files = "SwiftIO/**/*.swift"
1717
s.requires_arc = true
1818
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files

SwiftIO/SocketIOClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public class SocketIOClient: NSObject {
476476
currentPlaceholder++
477477
hasBinary = true
478478
returnDatas.append(binaryData)
479-
returnDict[key as String] = ["_placeholder": true, "num": currentPlaceholder++]
479+
returnDict[key as String] = ["_placeholder": true, "num": currentPlaceholder]
480480
} else if let arr = value as? NSArray {
481481
let (replace, hadBinary, arrDatas) = self.parseArray(arr, currentPlaceholder: currentPlaceholder)
482482

0 commit comments

Comments
 (0)