Open telostia opened 2 months ago
this is the code i used :
`Future
emit(ApplicationState(session: session, match: state.match));
NakamaWSClient.setSession(session);
}
void logout(Session session) { try { var client = NakamaClient.getInstance(); client?.sessionLogout(session: session); client = null; } catch (onError) { print(onError.toString()); } }`
found the culprit... it was the appbar widget that was causing connections to go berserk. somehow placing the login/logout functions here was causing nakama sockets to not show up on the server debug...
Nope. the issue was due to " await getAccount(session)"... causing an issue for dart client not to relogin.
cause: calling await getAccount(session)
Error: {"code":16,"message":"Server key invalid"}
version: latest 1.1.0 flutter version: 3.19.6 dart version: 3.3.4 platform: web problem: flutter app cannot relog in due to session not able to logged out. tried solution: 1)tried sessionLogout 2) setting session to null 3) setting client to null 4) setting websocket to null. result: the nakama server session seems to linger with all the methods tried above force solution: force refresh the web app will remove server session status.
Is there an more elegant solution to this?