• Helper function to launch StarCraft 2 and wait until it is open. Flags are provided to enable the WebSocket API.

    If you get an error related to "icuuc52.dll", then try opening the Battle.net launcher (and making sure you are logged in).

    Parameters

    • hostname: string = DEFAULT_HOSTNAME

      Optional. If not specified, "127.0.0.1" will be used.

    • port: number = DEFAULT_PORT

      Optional. If not specified, 5000 will be used.

    • displayMode: DisplayMode = DEFAULT_DISPLAY_MODE

      Optional. If not specified, 0 (windowed) will be used.

    Returns Promise<void>

Generated using TypeDoc