How to ignore refresh disconnection #2032
-
Hi, I'm trying to make a 'Online members' Database powered by Socket-io. I have a problem when user refresh the page since it's disconnect, I hope there is a way to ignore only the refresh but not when user close the page. |
Beta Was this translation helpful? Give feedback.
Answered by
miguelgrinberg
Jan 17, 2024
Replies: 2 comments
-
The browser disconnects when the page refreshes, you cannot keep a connection through a page refresh. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
martenzo7
-
ok, thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The browser disconnects when the page refreshes, you cannot keep a connection through a page refresh.