Do I have to open new socketio connection after switch the page? #49026
Unanswered
karasword55
asked this question in
Q&A
Replies: 0 comments
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 am using socketio in laravel to detect online users and fetch them into a div. But When I open new connection in a mainpage after login or register like this:
socket.on('connection',function(){
});
when the user go into other page (but the user is still online) I have to create new connection over the last connection. So, I want to the server does not disconnect when the user change the page instead disconnect when the user close the app or logout. How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions