Class: ChatSendBeforeEventSignal
Manages callbacks that are connected to an event that fires before chat messages are sent.
Constructors
new ChatSendBeforeEventSignal()
private
new ChatSendBeforeEventSignal():ChatSendBeforeEventSignal
Returns
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | ChatSendBeforeEvent |
Returns
void
Remarks
Adds a callback that will be called before new chat messages are sent.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Remarks
Removes a callback from being called before new chat messages are sent.
This function can't be called in read-only mode.
Throws
This function can throw errors.