Skip to content

_reconnectionToken not getting updated on reconnect #595

Closed Answered by endel
zack1991 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zack1991, the client._reconnectionToken is a private value for internal usage only.

If you really need to use it, you can get it from the newly connected client:

const reconnectedClient = await reconnection;
console.log("new token: ", reconnectedClient._reconnectionToken);
console.log("previous token: ", client._reconnectionToken);

I hope this helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by endel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants