Show / Hide Table of Contents

Class ServerSentEvent

Represents Server-Sent Event.

Inheritance
object
ServerSentEvent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
Back to top Copyright © 2017 - 2025 Tomasz Pęczek