Skip to content

RpcInvokeOptions

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.rpc/RpcInvokeOptions

[jvm]
data class RpcInvokeOptions(val namespace: String = "default", val async: Boolean = false, val timeout: Long? = null)

Options for FluxbaseRpc.invoke. Port of RPCInvokeOptions from rpc.ts:15.

RpcInvokeOptions [jvm]
constructor(namespace: String = "default", async: Boolean = false, timeout: Long? = null)
Name Summary
async [jvm]
val async: Boolean
namespace [jvm]
val namespace: String
timeout [jvm]
val timeout: Long?
Per-request timeout in milliseconds. When it elapses, invoke fails with a 408 "Request timeout" error. The client-wide FluxbaseClientOptions.timeout still applies at the transport level, so a value larger than that is capped by it.