1.1.2 • Published 10 years ago

battle-eye-client v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago