Add reconnect availability

Use same method as in ss-engine.io project, just copy some peaces of code. This works well and more stable when ss-engine.io with clustering mechanism of pm2 runner.