ksrpc-service-worker

Experimental JS/WasmJS transport that communicates over browser service workers. Host a service in the worker with onServiceWorkerConnection, and connect from the main thread with createServiceWorkerWithConnection to obtain a Connection<String> backed by the registered worker script. Requires @OptIn(ExperimentalKsrpc::class).

Experimental JS/WasmJS transport that communicates over browser service workers. Host a service in the worker with onServiceWorkerConnection, and connect from the main thread with createServiceWorkerWithConnection to obtain a Connection<String> backed by the registered worker script. Requires @OptIn(ExperimentalKsrpc::class).

Experimental JS/WasmJS transport that communicates over browser service workers. Host a service in the worker with onServiceWorkerConnection, and connect from the main thread with createServiceWorkerWithConnection to obtain a Connection<String> backed by the registered worker script. Requires @OptIn(ExperimentalKsrpc::class).

Packages

Link copied to clipboard
common
js

onServiceWorkerConnection (worker host) and createServiceWorkerWithConnection (client), plus platform-specific service worker connection implementations for JS and WasmJS targets.