Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]How to on many eventNames when wildcard is true #295

Open
xmsz opened this issue Nov 9, 2022 · 0 comments
Open

[QUESTION]How to on many eventNames when wildcard is true #295

xmsz opened this issue Nov 9, 2022 · 0 comments

Comments

@xmsz
Copy link

xmsz commented Nov 9, 2022

const emitter = new EventEmitter2({wildcard: true})


emitter.emit("a.b");
emitter.emit("a.c");




emitter.on(["a.b","a.c"], () => {}); // no works
emitter.on(["a","b",symbol(),"a","b"], () => {}); // no works



How can i listen to a.b and a.c at same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant