This commit is contained in:
Erik 2015-03-24 11:05:03 -04:00
parent 61ad14f23b
commit 9044de53d9

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.
*/ */