Saturday 23 April 2016

Using socket.io and setInterval on my game server.

What happens when setInterval can't loop through all the code and emit everything it needs to before the next frame is called? What's the best way to work around this? Right now my server works fine with a couple people on, but what happens if hundreds or even thousands of people were on it, what's the best way to scale my app to make sure this doesn't become a problem?

Submitted April 24, 2016 at 03:39AM by node_newb

No comments:

Post a Comment