S
SolidJS2mo ago
gsoutz

Should I destroy and create a new websocket connection on each page?

Or keep the existing connection throughout different pages, and somehow figure out which page should I handle by different means. I solved all my websocket problems, now this question come to my head, because it takes a split second more to open up the connection and be ready.
2 Replies
Madaxen86
Madaxen862mo ago
I‘d rather keep them open as long as necessary and avoid to many disconnect/re-connections.
gsoutz
gsoutzOP2mo ago
thank you, i will work on that.
Want results from more Discord servers?
Add your server