onAny method
Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the callback.
@example
socket.onAny((event, ...args) => {
console.log(got ${event}
);
});
@param listener
Implementation
@override
Socket onAny(AnyEventHandler handler) {
_anyListeners.add(handler);
return this;
}