http2byond
Version:
Communication layer between node.js and BYOND game servers.
23 lines • 904 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
const http2byond_1 = require("./http2byond");
/**
* @deprecated Use {@link #sendTopic} and {@link #createTopicConnection} instead
*/
class ShimTopicConnection {
constructor(config) {
var _a;
this.timeout = (_a = config === null || config === void 0 ? void 0 : config.timeout) !== null && _a !== void 0 ? _a : 2000;
}
run(config) {
return (0, http2byond_1.sendTopic)({
host: config.ip,
port: config.port,
topic: config.topic,
timeout: this.timeout
});
}
}
exports.default = (0, util_1.deprecate)(ShimTopicConnection, "The API for http2byond has changed. Please see updated documentation to see how to use the new sendTopic() and createTopicConnection() functions");
//# sourceMappingURL=shim.js.map