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
Hi,
I use a socket.id as ID of the session.
And I need to after refresh the page, socket is created based on the already generated ID (stored in client cookie).
In your code you are saving ID, but do not use it for a new connection.
Why not use something similar? (possibly optional)
Server.prototype.generateId = function(req){
var c = parseCookie(req.headers.cookie);
if(this.cookie && c[this.cookie]){
return c[this.cookie];
}
return base64id.generateId();
};
Or maybe something like this already implemented and configured?
The text was updated successfully, but these errors were encountered:
Hi,
I use a socket.id as ID of the session.
And I need to after refresh the page, socket is created based on the already generated ID (stored in client cookie).
In your code you are saving ID, but do not use it for a new connection.
Why not use something similar? (possibly optional)
Or maybe something like this already implemented and configured?
The text was updated successfully, but these errors were encountered: