Quote:
Originally Posted by Gyttiie
Hi. is it possible to make automatically reconnect to the server when i lost my internet for 1 minute?
it's very annoying when i lost my internet for a few mins and mfc-node can't reconnect to the server automatically and i should go to my pc and write "node.main.js".
|
You can use a bat file or forever
Bat file contents:
@echo off
SET foo=1
:initiate
ECHO Starting program, attempt %foo%
node main.js
set /A foo=foo+1
timeout 30
goto :initiate
Forever:
https://www.npmjs.com/package/forever
My node disconnects 3 to 4 times a day. The bad part is im getting about 80GB of files a day
