socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Multiple binds for same event

Open hfossli opened this issue 10 years ago • 0 comments

In a OOP setup where multiple objects are tapping in to the same event they should be able to unbind without side effects.

Suggestion I think on(...) should return a unique id (int) so that it is possible to remove the binding with off(identifier). We should also introduce a convenience method offAllForEvent(event) or something like that for those cases where you actually want to remove all.

hfossli avatar Jul 13 '15 09:07 hfossli