Show / Hide Table of Contents

Class ServerSentEvent

Represents Server-Sent Event.

Inheritance
System.Object
ServerSentEvent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Collections.Generic.IList<System.String>

Id

Gets or sets the event identifier (optional).

Declaration
public string Id { get; set; }
Property Value
Type Description
System.String

Type

Gets or sets the event type (optional).

Declaration
public string Type { get; set; }
Property Value
Type Description
System.String
Back to top Copyright © 2017 - 2023 Tomasz Pęczek