Question about io.to(arr) #4378
Unanswered
SupertigerDev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi! There is indeed currently no distinction between emitting empty array (
We could add one though. What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use the code below, it only emits to the users that are joined to the 2 rooms.
However, when the array is empty, it is emitting to everyone. I don't know if this is a bug or what but I dont want it to emit to anyone if the array is empty.
Beta Was this translation helpful? Give feedback.
All reactions