Skip to main content

Class: ScriptEventCommandMessageAfterEventSignal

Allows for registering an event handler that responds to inbound /scriptevent commands.

Constructors

new ScriptEventCommandMessageAfterEventSignal()

private new ScriptEventCommandMessageAfterEventSignal(): ScriptEventCommandMessageAfterEventSignal

Returns

ScriptEventCommandMessageAfterEventSignal

Methods

subscribe()

subscribe(callback, options?): (arg) => void

Parameters

ParameterType
callback(arg) => void
options?ScriptEventMessageFilterOptions

Returns

Function

Parameters
ParameterType
argScriptEventCommandMessageAfterEvent
Returns

void

Remarks

Registers a new ScriptEvent handler.

This function can't be called in read-only mode.


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

Unsubscribes a particular handler for a ScriptEvent event.

This function can't be called in read-only mode.

Throws

This function can throw errors.