javascript - Create a room system with different instances of node.js -


i created video game based on node.js , socket.io. now, there 1 "room" players can play together. create room system.

but server code quite complex, , changing handle different game states difficult.

so thought maybe can launch several instances of node on server, , every room connects different instance.

is feasible? recommended, , have other ideas?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

Simple Angular 2 project fails 'Unexpected reserved word' -

php - Get process resource by PID -