1.5.0 • Published 3 years ago

@stuyk/altv-reconnect v1.5.0

Weekly downloads
-
License
GNUv3
Repository
github
Last release
3 years ago

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
1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago