routes for sockets
Socketron is an event-driven state machine for routing sockets.
I found when working with socket.io, that:
Didn't scale very well. Organization became difficult, and much spaghetti code ensued.
Install with npm:
npm install socketron
Give it a socket.io instance and you're good to go!
var io = ;var socketron = ;var router = socketron;router;