/http2byond

Primary LanguageJavaScript

http2byond

A communication layer between node.js and BYOND game servers.

Installation

npm install --save http2byond

Example

const http2byond = require("./index.js");
let connection = new http2byond({
	timeout: 2000
});

var form = {
	ip: "localhost",
	port: "6666",
	topic: "?status"
};

connection.run(form).then((body) => {
	console.log(body);
}, (err) => {
	console.error("ERR", err);
});