Merge branch 'master' into 1.2

This commit is contained in:
Erik 2015-03-24 12:26:49 -04:00
commit 4e6b686f37
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "Socket.IO-Client-Swift" s.name = "Socket.IO-Client-Swift"
s.version = "1.3.3" s.version = "1.3.4"
s.summary = "Socket.IO-client for Swift" s.summary = "Socket.IO-client for Swift"
s.description = <<-DESC s.description = <<-DESC
Socket.IO-client for Swift. Socket.IO-client for Swift.
@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.author = { "Erik" => "nuclear.ace@gmail.com" } s.author = { "Erik" => "nuclear.ace@gmail.com" }
s.ios.deployment_target = '8.0' s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10' 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.source_files = "SwiftIO/**/*.swift"
s.requires_arc = true s.requires_arc = true
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files # s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files

View File

@ -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. Adds a handler for an event.
*/ */