switchUser
Changes the user. Disconnects the current user and connects to a new one. The tokenProvider implementation is used for the initial token, and it's also invoked whenever the user's token has expired, to fetch a new token.
This method disconnects from the SDK and right after connects to it with the new User.
Return
Executable Call responsible for connecting the user.
Parameters
The user to set.
A TokenProvider implementation.
The timeout in milliseconds to be waiting until the connection is established.
See also
Changes the user. Disconnects the current user and connects to a new one. The tokenProvider implementation is used for the initial token, and it's also invoked whenever the user's token has expired, to fetch a new token.
This method disconnects from the SDK and right after connects to it with the new User.
Return
Executable Call responsible for connecting the user.
Parameters
The user to set.
Instance of JWT token.
The timeout in milliseconds to be waiting until the connection is established.