socketcluster-client-swift
socketcluster-client-swift copied to clipboard
Listener cannot remove handlers for events
class Listener has a property dictionary of event names to closures. We are able to register new listeners, but we can never remove them. Please add a new method so we can remove them.
class Listener {
removeListener(eventName: String) {
self.onListener[eventName] = nil
}