R6 class for mirai clients.
Details
See crew_client().
See also
Other client:
crew_client()
Active bindings
hostSee
crew_client().portSee
crew_client().tlsSee
crew_client().serializationSee
crew_client().profileCompute profile of the client.
seconds_intervalSee
crew_client().seconds_timeoutSee
crew_client().relayRelay object for event-driven programming on a downstream condition variable.
startedWhether the client is started.
urlClient websocket URL.
Methods
Method new()
mirai client constructor.
Usage
crew_class_client$new(
host = NULL,
port = NULL,
tls = NULL,
serialization = NULL,
profile = NULL,
seconds_interval = NULL,
seconds_timeout = NULL,
relay = NULL
)Arguments
hostArgument passed from
crew_client().portArgument passed from
crew_client().tlsArgument passed from
crew_client().serializationArgument passed from
crew_client().profileArgument passed from
crew_client().seconds_intervalArgument passed from
crew_client().seconds_timeoutArgument passed from
crew_client().relayArgument passed from
crew_client().
Examples
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
client$start()
client$log()
client$terminate()
}Method set_started()
Register the client as started.
Method start()
Start listening for workers on the available sockets.
Method status()
Get the counters from mirai::info().
Examples
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
client$start()
client$log()
client$terminate()
}
## ------------------------------------------------
## Method `crew_class_client$new`
## ------------------------------------------------
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
client <- crew_client()
client$start()
client$log()
client$terminate()
}