Package-level declarations

createServiceWorkerWithConnection and platform-specific service worker connection implementations for JS and WasmJS targets.

createServiceWorkerWithConnection and platform-specific service worker connection implementations for JS and WasmJS targets.

createServiceWorkerWithConnection and platform-specific service worker connection implementations for JS and WasmJS targets.

Functions

Link copied to clipboard

Creates a connection to a service worker registered at workerScriptPath.

Link copied to clipboard
fun onServiceWorkerConnection(env: KsrpcEnvironment<String>, onConnection: suspend (Connection<String>) -> Unit)

Listens for "ksrpc-connect" to attach a port and provides callback to initialize a Connection.