Add feature to allow multiple accounts
Opened this issue · 5 comments
Find an Idea how to support multiple accounts at all. Any Ideas are welcome!
i think threading would be a good option here, every account its own thread?
https://docs.godotengine.org/en/stable/tutorials/performance/using_multiple_threads.html
It's not a performance issue its a storage and usage issue. Cause how do you call the method for a specific user etc. everything needs to be rewritten to support multiple users at once. Maybe some context variables could work something like TwitchService.use(user) but then you may have the problem with await methods and async stuff.
It's hard because this project use a lot of static stuff. Better would be an object based design. So you could use new TwitchService(user)
but also then everything needs to be rewritten.
Should find a backwards compatible solution probably. I like your idea with new TwitchService(user)
idea