Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows for registering an event handler that responds to inbound /scriptevent commands.
Methods
subscribe
subscribe(callback: (arg0: ScriptEventCommandMessageAfterEvent) => void, options?: ScriptEventMessageFilterOptions): (arg0: ScriptEventCommandMessageAfterEvent) => void
Registers a new ScriptEvent handler.
Parameters
- callback: (arg0: ScriptEventCommandMessageAfterEvent) => void
- options?: ScriptEventMessageFilterOptions =
null
Returns (arg0: ScriptEventCommandMessageAfterEvent) => void
Notes:
- This function can't be called in read-only mode.
- This function can be called in early-execution mode.
unsubscribe
unsubscribe(callback: (arg0: ScriptEventCommandMessageAfterEvent) => void): void
Unsubscribes a particular handler for a ScriptEvent event.
Parameters
- callback: (arg0: ScriptEventCommandMessageAfterEvent) => void
Notes:
- This function can't be called in read-only mode.
- This function can be called in early-execution mode.