Keep a node.js network connection alive by reconnecting repeatedly