1.1.2 • Published 10 years ago
battle-eye-client v1.1.2
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