Skip to content

ConnectionStateRecovery not working when switching from wifi to 4g #5248

Answered by darrachequesne
plok1412 asked this question in Q&A
Discussion options

You must be logged in to vote

From looking at the SessionAwareAdapter class, there doesn't seem to be a way to link the SocketId from the Adaptor class to the PrivateSessionId in the SessionAwareAdapter class to check the ID exists.

Hmm yes you're right, I think we'd either have to store the relationship between sid and pid, or loop through all the connected sockets.

For clustered adapters like the one based on Redis, we would also have to make sure the session does not exist on another node.

However with that, I don't currently have any great ideas to make sure the timing executes reliably so that it definitely disconnects before restoreSession.

If we have access to the socket object, we could listen to the "disc…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nootheroptions
Comment options

@darrachequesne
Comment options

Answer selected by darrachequesne
@nootheroptions
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants