This commit is contained in:
parent
61ad14f23b
commit
9044de53d9
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user