Handles generic Server interaction, such as Sending Commands, managing Power State, and getting Details

Constructors

Properties

Methods

  • Instructs the Server to start up, shut down, restart, or force quit

    Parameters

    • action: PowerRequest

      The power action to send. One of: ["start", "stop", "restart", "kill"]

    Returns Promise<void>

    Example

    Example of stopping the server

    await wisp.api.PowerRequest("stop");
    
  • Sends a command to the Server

    Parameters

    • command: string

      The full command string to send to the Server

    Returns Promise<void>

Generated using TypeDoc