You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to get the same id to the client even when the user reloads the web page? I would like to send notifications even though the user has navigated away from the initial page.
The text was updated successfully, but these errors were encountered:
There are several ways to accomplish this. FIrst of all, you need to keep some information about a user (id in a cookie for example). Then, keep a map of user ids and connection ids on the server.
Then, when you send a message to a connection id, send it to all connection ids associated to the user id.
Is it possible to get the same id to the client even when the user reloads the web page? I would like to send notifications even though the user has navigated away from the initial page.
The text was updated successfully, but these errors were encountered: