Skip to content

FluxbaseClientOptions

//fluxbase-kotlin/io.github.nimbleflux.fluxbase/FluxbaseClientOptions

data class FluxbaseClientOptions(val autoRefresh: Boolean = true, val persist: Boolean = true, val storage: StorageAdapter = MemoryStorage(), val headers: Map<String, String> = emptyMap(), val timeout: Long, val debug: Boolean = false, val trustSslCertificates: Boolean = false)

Options for constructing a FluxbaseClient. Port of FluxbaseClientOptions from sdk/src/types.ts:35.

jvm

autoRefresh whether to automatically refresh the JWT before expiry (default true).
persist whether to persist the session to the storage adapter (default true).
storage custom session persistence (default: MemoryStorage).
headers additional default headers on every request.
timeout request timeout in milliseconds (default 30000).
debug enable verbose logging (default false).
FluxbaseClientOptions [jvm]
constructor(autoRefresh: Boolean = true, persist: Boolean = true, storage: StorageAdapter = MemoryStorage(), headers: Map<String, String> = emptyMap(), timeout: Long, debug: Boolean = false, trustSslCertificates: Boolean = false)
Name Summary
autoRefresh [jvm]
val autoRefresh: Boolean
debug [jvm]
val debug: Boolean
headers [jvm]
val headers: Map<String, String>
persist [jvm]
val persist: Boolean
storage [jvm]
val storage: StorageAdapter
timeout [jvm]
val timeout: Long
trustSslCertificates [jvm]
val trustSslCertificates: Boolean
Skip TLS certificate validation for this client’s engine (HTTP and realtime WebSocket). For self-hosted instances behind self-signed certificates — opt in only, validation stays the default. Scoped to this client’s connections, unlike a global trust-store override.