Files
LegacyCrossPlay/index.js
2026-03-09 02:24:59 -04:00

23 lines
650 B
JavaScript

/* --------------------------------------------------------------- */
/* index.js */
/* --------------------------------------------------------------- */
process.removeAllListeners("warning");
process.on("warning", (warning) => {
if (warning.name === "DeprecationWarning") return;
console.warn(warning.name, warning.message);
});
const LCEProxy = require("./src/lceproxy");
const proxy = new LCEProxy();
(async () => {
await proxy.start();
})();
process.on("SIGINT", () => {
proxy.stop();
process.exit(0);
});
/* --------------------------------------------------------------- */