socketcluster-client-swift icon indicating copy to clipboard operation
socketcluster-client-swift copied to clipboard

Listener cannot remove handlers for events

Open benedictchen opened this issue 2 years ago • 0 comments

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
}

benedictchen avatar Mar 24 '22 19:03 benedictchen