ExtendableMessageEventInit Class
The initialization dictionary of an ExtendableMessageEvent (https://w3c.github.io/ServiceWorker/#dictdef-extendablemessageeventinit).
public sealed class ExtendableMessageEventInit : ExtendableEventInit- Inheritance
ExtendableEventInitExtendableMessageEventInit
Constructors
| Name | Description |
|---|---|
| ExtendableMessageEventInit() |
ExtendableMessageEventInit()
ServiceWorkerTypes.cspublic ExtendableMessageEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Data | Gets the data of the message. |
| LastEventId | Gets the last event ID. |
| Origin | Gets the origin of the sender. |
| Ports | Gets the ports sent with the message. |
| Source | Gets the sender: a Client, a ServiceWorker or a MessagePort, or null. |
LastEventId
ServiceWorkerTypes.csOrigin
ServiceWorkerTypes.csGets the ports sent with the message.
public IReadOnlyList<MessagePort> Ports { get; init; }Source
ServiceWorkerTypes.csGets the sender: a Client, a ServiceWorker or a MessagePort, or null.
public object? Source { get; init; }