Added semi-functional websocket implementation of signalR for live server list changes (seems a bit chatty though with some servers only having time remaining changing, fixed crash when a user has an active login but their profile picture was removed, fixed not explicitly saving Cache.fetch'ed items as binary 'wb' resulting in corrupt profile image.

This commit is contained in:
2021-12-26 21:23:53 -06:00
parent 52e46eced5
commit e87f14079d
4 changed files with 76 additions and 6 deletions

View File

@@ -48,9 +48,10 @@ class W3DHub
Cache.fetch(internet, account.avatar_uri)
populate_account_info; page(W3DHub::Pages::Games)
populate_account_info
page(W3DHub::Pages::Games)
else
# An error occurred, enable account entry
# An error occurred, enable account entry
# NOTE: Too many incorrect entries causes lock out (Unknown duration)
@username.enabled = true
@password.enabled = true
@@ -68,8 +69,13 @@ class W3DHub
end
if Store.account
populate_account_info
page(W3DHub::Pages::Games)
Async do
internet = Async::HTTP::Internet.instance
Cache.fetch(internet, Store.account.avatar_uri)
populate_account_info
page(W3DHub::Pages::Games)
end
end
end