LiveMessage.SendFunctions (live_message v0.1.12)
The send_info/2
and send_info_after/3
functions that are imported into all LiveViews and LiveComponents
Summary
Functions
Link to this function
send_info(target, message)
Sends message
to target
asynchronously.
Parameters
- message: the message to be sent, this can be any term.
- target: the LiveMessage.Id of the LiveView or LiveComponent. This can be found using the
@me
assign. - time: time in milliseconds to wait before sending the message.
Link to this function
send_info_after(target, message, time)
Sends message
to target
after time
milliseconds.
Parameters
- message: the message to be sent, this can be any term.
- target: the LiveMessage.Id of the LiveView or LiveComponent. This can be found using the
@me
assign. - time: time in milliseconds to wait before sending the message.