node.js - How to reconnect to the same instance in node cluster? -


we have multiplayer game written in node js.

we want run server in cluster mode using pm2 (4 instances example), wondering how automatically reconnect user same instance.

if user reconnects (reloads browser example) or how identify instance user belong , connect instance?

the game stateless need connect user same instance continue game process, when he/she reloads game.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -