GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - drxid/rconnect: Rcon BF3 & BF4 protocol wrapper for Deno

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
README.md
README.md
 
 
app.ts
app.ts
 
 

Repository files navigation

rconnet

rconnect — is the RCON layer for Battlefield/Frostbite engine, powered by node.js and enhanced with Deno for modern code and type safety.
It enables easy creation of custom server management interfaces with automated map voting, team allocation, real-time player stats, and more.

Usage

import { BF4Api, RconClient } from './src/mod.ts'

const ip = ''
const port = ''
const password = ''

async function main() {
  const rconClient = new RconClient(ip, port)
  try {
    const bf4 = new BF4Api(rconClient)
    await bf4.login(password)

    const serverInfo = await bf4.serverInfo()
    console.log('serverInfo', serverInfo)

    bf4.onPlayerKill$.subscribe((e) => console.log('onPlayerKill', e))
    await bf4.adminEvents('true')
  } catch (e) {
    console.error(e)
    rconClient.disconnect()
  }
}

main()

For debug run your app

DEBUG=* deno run --allow-env --allow-net app.ts

About

Rcon BF3 & BF4 protocol wrapper for Deno

Topics

bf3bf4denorconrcon-client

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.