Node.js pm2 delay script launch
Run Pm2 using this script
pm2 start node <start script> --restart-delay <time in milliseconds>
Rewrite your client to make several connection attempts. It is always a good thing to do, and it'll also help in this case.