S
S
Space2014-03-07 16:40:13
JavaScript
Space, 2014-03-07 16:40:13

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

2 answer(s)
R
rumkin, 2014-03-07
@ruslite

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.

G
g27, 2014-03-07
@g27

Your implementation in the studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question