Class ServerSentEvent
Represents Server-Sent Event.
Inherited Members
Namespace: Lib.AspNetCore.ServerSentEvents
Assembly: Lib.AspNetCore.ServerSentEvents.dll
Syntax
public class ServerSentEvent
Properties
Data
Gets or sets the event payload.
Declaration
public IList<string> Data { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
Id
Gets or sets the event identifier (optional).
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Gets or sets the event type (optional).
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |