create
//fluxbase-kotlin/io.github.nimbleflux.fluxbase/FluxbaseClient/Companion/create
create
Section titled “create”[jvm]
fun create(url: String? = null, key: String? = null, options: FluxbaseClientOptions = FluxbaseClientOptions(), transport: HttpTransport? = null): FluxbaseClient
Create a FluxbaseClient. Port of createClient() in client.ts:770-823.
Resolves url and key from the arguments or environment variables (FLUXBASE_URL / FLUXBASE_ANON_KEY / FLUXBASE_SERVICE_TOKEN), then wires the HTTP client with apikey + Authorization: Bearer headers and constructs the auth module.
Parameters
Section titled “Parameters”jvm
| url | the Fluxbase server URL. Falls back to FLUXBASE_URL env var. |
| key | the anon or service-role key. Falls back to env vars. |
| options | client options (autoRefresh, storage, headers, etc.). |
| transport | the HTTP transport SPI (default: KtorHttpTransport; tests inject a recording fake). |