@stuyk/altv-reconnect
v1.5.0
Published
A reconnect tool for alt:V.
Downloads
27
Readme
alt:V - Reconnect
It's just a tool for automatically reconnecting to your alt:V server.
Basically you add this package to your alt:V server and it'll reconnect your localhost on server restart.
Additional instructions below.
Installation
Prerequisites
- NodeJS 13+
Install
Install it as a developer dependency if you plan on running it from npm.
npm install @stuyk/altv-reconnect -D
Setting Up for Reconnection
Inside Your package.json
Append this script to your "scripts" section. This will spin up a webserver that will listen for get requests for reconnecting. Once you push a get request it will automatically reconnect you.
You will need to start this script after appending it to your scripts.
"scripts": {
"reconnect": "altv-reconnect"
}
Keep this running in the background.
npm run reconnect
Inside Your Script
In your script you should run a GET request against one of these URLs
http://localhost:9229/reconnect
http://localhost:9229/reconnect/debug