Skip to content

Commit 2c78e36

Browse files
committed
handle version in keyValueToSocketIOClientOption
1 parent 162eb3d commit 2c78e36

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: Socket.IO-Client-Swift.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Socket.IO-Client-Swift"
33
s.module_name = "SocketIO"
4-
s.version = "16.0.0"
4+
s.version = "16.0.1"
55
s.summary = "Socket.IO-client for iOS and OS X"
66
s.description = <<-DESC
77
Socket.IO-client for iOS and OS X.
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.requires_arc = true
1919
s.source = {
2020
:git => "https://github.com/socketio/socket.io-client-swift.git",
21-
:tag => 'v16.0.0',
21+
:tag => 'v16.0.1',
2222
:submodules => true
2323
}
2424

Diff for: Source/SocketIO/Util/SocketExtensions.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ extension Dictionary where Key == String, Value == Any {
8787
return compress ? .compress : nil
8888
case let ("enableSOCKSProxy", enable as Bool):
8989
return .enableSOCKSProxy(enable)
90-
default:
90+
case let ("version", version as Int):
91+
return .version(SocketIOVersion(rawValue: version) ?? .three)
92+
case _:
9193
return nil
9294
}
9395
}

0 commit comments

Comments
 (0)