battle-eye-client
v1.1.2
Published
A BattleEye Client for node.js
Downloads
24
Readme
Description
A BattleEye Client for node.js. Used for Arma2, DayZ and Arma 3.
Install
npm install battle-eye-clientExample
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
