Adding Servers
You can add servers to interact with via your application by following the documentation on this page.
Example Code
import { RCEManager, RCEIntent } from "rce.js";
const rce = new RCEManager();
await rce.init({
// ...
}, {
// ...
});
await rce.servers.addMany([
{
identifier: "my-solo-duo-trio-3x",
serverId: 1234567,
region: "US",
intents: [RCEIntent.All], // All, ConsoleMessages, ServiceState, ServiceSensors
playerRefreshing: true,
radioRefreshing: true,
extendedEventRefreshing: true,
state: ["trio", "3x"]
},
{
identifier: "my-zerg-2x",
serverId: 7654321,
region: "EU",
intents: [RCEIntent.ConsoleMessages],
state: ["zerg", "2x"],
silent: true
},
// ...
]);
You can also add one server at a time using the following method:
import { RCEManager, RCEIntent } from "rce.js";
const rce = new RCEManager();
await rce.init({
// ...
}, {
// ...
});
await rce.servers.add({
identifier: "solo-only-3x",
serverId: 1111111,
region: "EU",
intents: [RCEIntent.All],
state: ["solo", "3x"]
});
Server Options
Below is a brief explanation of each option when defining new server(s).
Last updated