@stuyk/altv-reconnect

    1.5.0 • Public • Published

    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
    

    Install

    npm i @stuyk/altv-reconnect

    DownloadsWeekly Downloads

    31

    Version

    1.5.0

    License

    GNUv3

    Unpacked Size

    63.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • stuyk