← Back to ServiceWorker domain

ServiceWorker.dispatchSyncEvent

No description available.

Domain: ServiceWorker experimental

Parameters

NameTypeDescription
originstring
registrationIdRegistrationID
tagstring
lastChanceboolean

Example Request

{
  "id": 1,
  "method": "ServiceWorker.dispatchSyncEvent",
  "params": {
    "origin": "origin-value",
    "registrationId": "registrationId-value",
    "tag": "tag-value",
    "lastChance": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('ServiceWorker.dispatchSyncEvent', {"origin": "origin-value", "registrationId": "registrationId-value", "tag": "tag-value", "lastChance": true});
console.log(result);