KRPC#

Provides functionality to interact with the server: its status and services, the connected clients, the game scene and pause state, and holding the game on a physics tick. The expressions build server side functions.

Example#

The following example prints the version of the server:

import { connect } from "@krpc-org/krpc";

const conn = await connect({ name: "KRPC Example" });
console.log((await conn.krpc.getStatus()).version);