Skip to content

A system for connecting to remote console for ARMA servers over UDP.

Notifications You must be signed in to change notification settings

nitro404/arma-rcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARMA RCon

NPM version Build Status Coverage Status Known Vulnerabilities Dependencies Downloads Install Size Contributors Pull Requests Welcome

A system for connecting to remote console for ARMA servers over UDP.

Server-Side Usage

var async = require("async");
var armaRcon = require("arma-rcon");

var server = new armaRcon.ARMAServer("127.0.0.1", 2302);

return async.waterfall(
	[
		function(callback) {
			return server.login(
				"password",
				function(error, loggedIn) {
					if(error) {
						return callback(error);
					}

					console.log("Logged in!");

					return callback();
				}
			);
		},
		function(callback) {
			return server.globalMessage(
				"Test message, please ignore.",
				function(error, packet, bytesSent) {
					if(error) {
						return callback(error);
					}

					console.log("Message sent!");

					return callback();
				}
			);
		},
		function(callback) {
			return server.logout(
				function(error) {
					if(error) {
						return callback(error);
					}

					console.log("Logged out.");

					return callback();
				}
			);
		}
	],
	function(error) {
		if(error) {
			return console.error(error);
		}
	}
);

Installation

To install this module:

npm install arma-rcon

About

A system for connecting to remote console for ARMA servers over UDP.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published