onServiceWorkerConnection
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.
This is an experimental API — the service-worker transport has limited test coverage and its behavior may change without notice.