ViciousFish / buzzwords

A browser based word strategy game featuring frictionless link-based multiplayer. Try it today!
https://buzzwords.gg
Apache License 2.0
48 stars 9 forks source link

bot moves sometimes don't sync #13

Closed chuckdries closed 2 years ago

chuckdries commented 2 years ago

Some users have to refresh after every move to see their move or the bot move in bot games specifically. Originally reported by a user using Brave, who said it worked when they switched to chrome.

chuckdries commented 2 years ago

Update: got another report of bot moves not syncing, this time in mobile safari

James-Quigley commented 2 years ago

Likely due to socket disconnects. I've re-enabled socket long polling with https://github.com/ViciousFish/buzzwords/commit/efd56c3a8fff6c2fb5042c8f0478db1a1bf5f289 which should help alleviate the problem. As soon as we need to introduce a second server we will have to revisit this due to problems with load balancers and sticky sessions.

chuckdries commented 2 years ago

I believe d0030a0be9b309ac4c020b8e576f443bd66e703b should have also helped (though in retrospect I have no idea how it worked before without withCredentials?). I can no longer reproduce on my phone

chuckdries commented 2 years ago

First person to report the issue to me reports it is fixed