battle-eye-client

1.1.2 • Public • Published

Description

A BattleEye Client for node.js. Used for Arma2, DayZ and Arma 3.

Install

npm install battle-eye-client

Example

var BattleEyeClient = require("battle-eye-client")
 
var battleEyeClient = new BattleEyeClient("IP", 2320, "Password")
 
//Process messages
battleEyeClient.messageHandler =  function (message) {
  console.log(message);
};
 
//Do your cleanup and error handling
battleEyeClient.timeoutHandler= function() {
  console.log("Connection timed out.");
  battleEyeClient = undefined;
};
 
//Connect
battleEyeClient.connect()
 
//Send commands
battleEyeClient.sendCommand("players")
battleEyeClient.sendCommand("say -1 Hello World")

Dependencies

buffer-crc32

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i battle-eye-client

Weekly Downloads

0

Version

1.1.2

License

MIT

Last publish

Collaborators

  • electronstorm