2.2.0 • Published 2 years ago

http2byond v2.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

http2byond

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

Installation

npm install --save http2byond

Documentation

Example

const {createTopicConnection} = require("./index.js");
let connection = createTopicConnection({
  host: "localhost",
  port: 6666
})

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

async function anAsyncFunction() {
  const result = connection.send("status");
}

OR

const {sendTopic} = require("./index.js");

sendTopic({
  host: "localhost",
  port: 6666,
  topic: "status"
}).then((body) => {
  console.log(body);
}, (err) => {
  console.error("ERR", err);
});

async function anAsyncFunction() {
  const result = await sendTopic({
    host: "localhost",
    port: 6666,
    topic: "status"
  });
}
2.2.0

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

4 years ago

2.0.0

6 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago