Package-level declarations
Types
Default used on jvm/ios. ponytail: assumes online and lets the HTTP call fail-and-retry rather than probing reachability — upgrade to NWPathMonitor (ios) / a real jvm probe if false-positives ever cost a bad UX.
Real reachability via ConnectivityManager — validated internet capability, not just an up interface.
Resolves the server base URL at call time (backed by DataStore in core:data; defaults to localhost).
Cheap online check for the offline-first sync (gate a refresh() before hitting the network). An interface, not expect/actual, because only the Android/iOS/jvm impls need a platform dependency (ConnectivityManager / Konnection); wasmJs uses the naive default. Koin binds the right one.
Real reachability via Konnection (NWPathMonitor-backed on iOS 12+, SCNetworkReachability fallback below that). Replaces AlwaysOnlineConnectivityChecker for consumers that want an actual signal — Konnection self-initializes on first Konnection.instance access, no manual createInstance() call needed on this platform.
Real reachability via Konnection (periodic network-interface probe on jvm — no Context needed, unlike Android). Replaces AlwaysOnlineConnectivityChecker for consumers that want an actual signal instead of an always-true stub.
Advertises a service on the local network so nearby peers can discover it.
Advertises a service on the local network so nearby peers can discover it.
Advertises a service on the local network so nearby peers can discover it.
Advertises a service on the local network so nearby peers can discover it.
Advertises a service on the local network so nearby peers can discover it.
Discovers services of serviceType advertised on the local network.
Discovers services of serviceType advertised on the local network.
Discovers services of serviceType advertised on the local network.
Discovers services of serviceType advertised on the local network.
Discovers services of serviceType advertised on the local network.
Optional bearer token for authenticated deployments — returns null when the server is open.
Invoked when any authenticated call comes back 401 (token expired/revoked). The core:data SessionManager binds this to clear the stored token and flip the shell into re-login. Kept as a seam (like TokenProvider) so core:network needn't depend on core:data. Default = no-op.
Properties
Functions
The shared client: content negotiation, INFO logging, a bounded exponential-backoff retry on transient (5xx / IO) failures, and a request timeout. Base URL and auth are applied per-call by the consumer's typed API layer (they change at runtime, so they can't live in a static defaultRequest).
The platform HTTP engine: OkHttp (android), Darwin (ios), CIO (jvm/desktop), Js (wasmJs). Public so a consumer can build a bare HttpClient with its own config (e.g. a WebSocket client) instead of going through createHttpClient.
The platform HTTP engine: OkHttp (android), Darwin (ios), CIO (jvm/desktop), Js (wasmJs). Public so a consumer can build a bare HttpClient with its own config (e.g. a WebSocket client) instead of going through createHttpClient.
The platform HTTP engine: OkHttp (android), Darwin (ios), CIO (jvm/desktop), Js (wasmJs). Public so a consumer can build a bare HttpClient with its own config (e.g. a WebSocket client) instead of going through createHttpClient.
The platform HTTP engine: OkHttp (android), Darwin (ios), CIO (jvm/desktop), Js (wasmJs). Public so a consumer can build a bare HttpClient with its own config (e.g. a WebSocket client) instead of going through createHttpClient.
The platform HTTP engine: OkHttp (android), Darwin (ios), CIO (jvm/desktop), Js (wasmJs). Public so a consumer can build a bare HttpClient with its own config (e.g. a WebSocket client) instead of going through createHttpClient.
Install the application Context used by the Android NSD actuals. Call once from Application.onCreate() (or the compose entrypoint) BEFORE advertising/discovering.