ExtendableMessageEventInit Class

The initialization dictionary of an ExtendableMessageEvent (https://w3c.github.io/ServiceWorker/#dictdef-extendablemessageeventinit).

public sealed class ExtendableMessageEventInit : ExtendableEventInit
Inheritance
ExtendableEventInit ExtendableMessageEventInit

Constructors

NameDescription
ExtendableMessageEventInit()

ExtendableMessageEventInit()

ServiceWorkerTypes.cs
public ExtendableMessageEventInit()

No documentation is available.

Properties

NameDescription
DataGets the data of the message.
LastEventIdGets the last event ID.
OriginGets the origin of the sender.
PortsGets the ports sent with the message.
SourceGets the sender: a Client, a ServiceWorker or a MessagePort, or null.

Gets the data of the message.

public object? Data { get; init; }

Gets the last event ID.

public string LastEventId { get; init; }

Gets the origin of the sender.

public string Origin { get; init; }

Gets the ports sent with the message.

public IReadOnlyList<MessagePort> Ports { get; init; }

Gets the sender: a Client, a ServiceWorker or a MessagePort, or null.

public object? Source { get; init; }