Send a broadcast to all engines. It is equivalent to sending the same event to all engines.
Event name
Event arguments, must be serializable (can be converted to JSON)
Start a new engine to run a script or a project. The script context and environment will be independent from the current context and environment. The script can communicate with other scripts by events or broadcasts.
Script or project path
Execution configuration
Script execution object. It can be used to get engine status, communicate with other scripts, and control the engine.
Get all current running engines.
Array of current running engines
Get the engine object of the engine that current script running with.
Stop all engines.
停止所有引擎的选项
The engines module provides methods to get the current engine, arguments, and configuration of current engine, and functions to get other engines, start new engines, control other engines, and communicate with other engines.