rrq_message_send | R Documentation |
Send a message to workers. Sending a message returns a message id,
which can be used to poll for a response with the other
rrq_message_*
functions. See vignette("messages")
for details
for the messaging interface.
rrq_message_send(command, args = NULL, worker_ids = NULL, controller = NULL)
command |
A command, such as |
args |
Arguments to the command, if supported |
worker_ids |
Optional vector of worker ids to send the message
to. If |
controller |
The controller to use. If not given (or |
Invisibly, a single identifier
obj <- rrq_controller("rrq:example")
id <- rrq_message_send("PING", controller = obj)
rrq_message_get_response(id, timeout = 5, controller = obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.