Reauthenticate without reloading the page or losing state
Sometimes it’s helpful to reauthenticate users, for example after a logged out user has signed into your application, and you wish to display their details.
room.reconnect you can
reconnect and reauthenticate your collaborative application without refreshing
the page or unmounting the
Using this method will preserve the current client’s state, such as the
In our React package, you can retrieve the current room with the
useRoom hook, before calling
room.reconnect from there.