Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/testing/web-platform/tests/push-api/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 589 B image not shown  

Quelle  push-sw.js   Sprache: JAVA

 

async function postAll(data) {
  const clients = await self.clients.matchAll({ includeUncontrolled: true });
  for (const client of clients) {
    client.postMessage(data);
  }
}

function getJSON(data) {
  const result = {};
  try {
    result.value = data.json();
    result.ok = true;
  } catch (e) {
    result.ok = false;
  }
  return result;
}

onpush = async ev => {
  postAll({
    constructor: ev.constructor.name,
    data: ev.data && {
      text: ev.data.text(),
      arrayBuffer: ev.data.arrayBuffer(),
      json: getJSON(ev.data),
      blob: ev.data.blob(),
    },
  })
}

Messung
CHZG
839910094

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.