From 2c78e36ebdc368fa303f7d299cc520da571bec7c Mon Sep 17 00:00:00 2001 From: Erik Little Date: Tue, 16 Feb 2021 09:35:11 -0500 Subject: [PATCH] handle version in keyValueToSocketIOClientOption --- Socket.IO-Client-Swift.podspec | 4 ++-- Source/SocketIO/Util/SocketExtensions.swift | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Socket.IO-Client-Swift.podspec b/Socket.IO-Client-Swift.podspec index 50a988e1..60e68527 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 63b0b99d..d44ea26d 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 } }