From 9044de53d93e62cba0ca77c8aa27178f16e4cc05 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 24 Mar 2015 11:05:03 -0400 Subject: [PATCH 1/2] fix socketio/socket.io-client-swift#25 --- SwiftIO/SocketIOClient.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SwiftIO/SocketIOClient.swift b/SwiftIO/SocketIOClient.swift index 107131d..7d2aef5 100644 --- a/SwiftIO/SocketIOClient.swift +++ b/SwiftIO/SocketIOClient.swift @@ -335,6 +335,13 @@ public class SocketIOClient: NSObject, SocketEngineClient { } } + /** + Removes handler(s) + */ + public func off(event:String) { + self.handlers = self.handlers.filter {$0.event == event ? false : true} + } + /** Adds a handler for an event. */ From 78aba627a21aadaa75748fa1aa2397dca116ccbd Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 24 Mar 2015 11:17:29 -0400 Subject: [PATCH 2/2] bump version --- Socket.IO-Client-Swift.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Socket.IO-Client-Swift.podspec b/Socket.IO-Client-Swift.podspec index 6924c40..5cf3993 100644 --- a/Socket.IO-Client-Swift.podspec +++ b/Socket.IO-Client-Swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Socket.IO-Client-Swift" - s.version = "1.3.3" + s.version = "1.3.4" s.summary = "Socket.IO-client for Swift" s.description = <<-DESC Socket.IO-client for Swift. @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.author = { "Erik" => "nuclear.ace@gmail.com" } s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.10' - s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.3.3' } + s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v1.3.4' } s.source_files = "SwiftIO/**/*.swift" s.requires_arc = true # s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files