diff --git a/Socket.IO-Client-Swift.podspec b/Socket.IO-Client-Swift.podspec index 50a988e..60e6852 100644 --- a/Socket.IO-Client-Swift.podspec +++ b/Socket.IO-Client-Swift.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Socket.IO-Client-Swift" s.module_name = "SocketIO" - s.version = "16.0.0" + s.version = "16.0.1" s.summary = "Socket.IO-client for iOS and OS X" s.description = <<-DESC Socket.IO-client for iOS and OS X. @@ -18,7 +18,7 @@ Pod::Spec.new do |s| s.requires_arc = true s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", - :tag => 'v16.0.0', + :tag => 'v16.0.1', :submodules => true } diff --git a/Source/SocketIO/Util/SocketExtensions.swift b/Source/SocketIO/Util/SocketExtensions.swift index 63b0b99..d44ea26 100644 --- a/Source/SocketIO/Util/SocketExtensions.swift +++ b/Source/SocketIO/Util/SocketExtensions.swift @@ -87,7 +87,9 @@ extension Dictionary where Key == String, Value == Any { return compress ? .compress : nil case let ("enableSOCKSProxy", enable as Bool): return .enableSOCKSProxy(enable) - default: + case let ("version", version as Int): + return .version(SocketIOVersion(rawValue: version) ?? .three) + case _: return nil } }