I'm using socket.io, when the user closes the application(pause) and then resumes, the old socket is replaced with a new one, and another socket is created also.
Is there some way I could keep the socket in the background?
Or even destroy it before pause?