getRegistration

suspend fun getRegistration(clientURL: String = definedExternally): ServiceWorkerRegistration?(source)

The getRegistration() method of the client URL.

MDN Reference