an node.js base socket connection maintenance