getRegistration

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

MDN Reference