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
Parameter | Type |
---|---|
callback | (arg ) => void |
options ? | ScriptEventMessageFilterOptions |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | ScriptEventCommandMessageAfterEvent |
Returns
void
Remarks
Registers a new ScriptEvent handler.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
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.