arma-rcon
A system for connecting to remote console for ARMA servers over UDP.
Last updated 2 months ago by nitro404 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install arma-rcon 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (2 months ago)

3 Versions

  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |