sacOO7 / socketcluster-client-swift

Native iOS/macOS client written in swift 4/swift 5
https://socketcluster.io/
Apache License 2.0
22 stars 39 forks source link

Listener cannot remove handlers for events #34

Open benedictchen opened 2 years ago

benedictchen commented 2 years ago

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
}