Replies: 1 comment 2 replies
-
Hi! Could it be caused by multiple clicks on the client side? You should be able to temporarily disable the button when the user clicks on it, to prevent double clicks. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I'm frequently getting multiple of the same API calls being made that have been passed through socket.IO. I have client-side code (in React) that emits a command:
And then I have Node.js server-side code that receives the emitted command, and puts it into a queue to be processed by the API:
Not always, but I'm often 'randomly' getting duplicates / triplicates, etc. Do I need to be using socket.off() or socket.removeAllListeners() somewhere in my code to avoid duplicates?
Beta Was this translation helpful? Give feedback.
All reactions