Answer the question
In order to leave comments, you need to log in
Are temporary data preserved when passing data through socket.io?
Hello. I'm already exhausted and I can't understand, the script checks that if the variable is empty, then "walk Vasya". But even by resetting the variable, one hell of a script works. It is worth transferring data once and he can send them endlessly, although he deleted them. I'm doing it through Socket.io, maybe when it has completed sending, I need to somehow clean it up? Or how it is correct to implement check? HEELP
Answer the question
In order to leave comments, you need to log in
No, socket.io itself doesn't cache anything, but the wording of your question alone leaves too many options.
If it's a variable: then it's a scoping problem, and you're either overwriting the wrong thing: look at where the variable is declared, look at all parent var and function. Or the variable is overwritten: analyze the callbacks that write to this variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question