Having similar issue when logging in my accounts with refreshtokens, sometimes it stucks and i dont get any response in any possible events like "error" "disconnected", "loggedOn"
debug after stuck looks like (could be wrong lines but anyway)
[W189861] WebSocket closed by remote with code 1000 and reason ""
[W189861] Handling connection close
Disconnecting
Sending message: ClientLogOff
Disconnecting without sending logoff
[W189861] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189859] We wanted to end connection, but it's not connected or connecting
[W189859] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189860] We wanted to end connection, but it's not connected or connecting
[W189860] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189861] We wanted to end connection, but it's not connected or connecting
[W189861] We wanted to end connection, but it's not connected or connecting
webCompatibilityMode is true, with false is the same