Appearance
Home > resol-vbus-core-toolbox > Script
Script class
A script.
Signature:
typescript
export declare class Script
Constructors
Constructor | Modifiers | Description |
---|---|---|
Create a script. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
ScriptDollar<unknown> | The | ||
string | The absolute filename of the script. | ||
The event bus for this script. | |||
DefineScriptHandler | null | The handler passed to the | ||
The bridges from this script to the connections. | |||
(script: Script) => Promise<void> | Callback used to synchronize all | ||
(script: Script) => Promise<void> | Callback used to synchronize all | ||
(script: Script, channel: number, buffer: Uint8Array) => void | Callback used to transmit data from this script using | ||
'notStarted' | 'initializing' | 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | The phase of the script. | ||
ScriptInterface<unknown> | The interface returned by the | ||
ScriptModule | null | The | ||
unknown | null | The service provided to | ||
boolean | Indicates whether | ||
Used to synchronize |
Methods
Method | Modifiers | Description |
---|---|---|
Signal that this script wants to connect and wait for all other scripts to do the same. | ||
Signal that this script wants to disconnect and wait for all other scripts to do the same. | ||
Run this script. | ||
Set the script's handler function. |