MessageEvent: lastEventId-Eigenschaft
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die schreibgeschützte Eigenschaft lastEventId
des
MessageEvent
-Interfaces ist ein String, der eine
eindeutige ID für das Ereignis darstellt.
Wert
Ein String, der die ID darstellt.
Beispiele
js
myWorker.onmessage = (e) => {
result.textContent = e.data;
console.log("Message received from worker");
console.log(e.lastEventId);
};
Spezifikationen
Specification |
---|
HTML # dom-messageevent-lasteventid-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lastEventId |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Siehe auch
ExtendableMessageEvent
— ähnlich diesem Interface, wird jedoch in Interfaces verwendet, die den Autoren mehr Flexibilität bieten müssen.