socket.on('disconnect') run with order #4093
Answered
by
darrachequesne
sajjad-fatehi
asked this question in
Q&A
-
hi everyone . for example my 20 users disconnect in same time ... 20 times this code will run in same time and my array will have wrong data what can i do if i want disconnect event runs one by one ... not in same time thnks |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Sep 16, 2021
Replies: 1 comment 1 reply
-
Hi! Any reason you are not using a Redis Set (with SADD and SREM)? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sajjad-fatehi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Any reason you are not using a Redis Set (with SADD and SREM)?