Node.js Re-connecting Socket