Closed ostap0207 closed 8 years ago
That won't be easy since you can't compare functions in Swift
Would you consider returning some handler object through which you can remove callback if later.
var handler = socket.on("event") { ... }
socket.off("event", handler)
Are you planing to add support for off(event:callback:), so you can delete just specific call back if needed as in JS version?