problem synching state when using async onJoin
See original GitHub issueIssue Description
I am experiencing the same problem described in https://github.com/colyseus/colyseus/issues/137. Did anything change since 2018 on this topic?
Uncaught TypeError: Cannot read property 'length' of undefined
at Object.fossilDelta.apply (VM301 1.chunk.js:17943)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
problem synching state when using async onJoin #137 - GitHub
The scenario I'm having is: onInit() is async. The state is set only after a timeout. onJoin() is async. The state is mutated...
Read more >State update and onJoin timing | Colyseus Discussion Group
I'm having a few issues trying to integrate Colyseus with Phaser 3, ... onAuth method (using a Promise, not the async method /...
Read more >Dealing with async function doing sync work - Stack Overflow
The problem is that some of the class implementing this interface does not need to do work asynchronously so my current solution is...
Read more >Fixing sync over async issues in .NET / C# with Visual Studio ...
Asynchronous programming has been around for several years on the .NET platform but has historically been very difficult to do well.
Read more >Problem with async/await pattern -- in C# and JavaScript
The problem with the async/await pattern now is that to use it, you have to decide if a function is synchronous or asynchronous....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@endel Thanks for the quick response!
Actually it doesn’t have to do anything with async. It was because there was no state at all when the first client connects and I added it before I make my async action (API call).