Skip to content

THTTPServerEvent

Server-sent event data structure

Declaration

Source position: httpdefs.pp line 579

type
  THTTPServerEvent = record
    Id: string;
    Data: Array of string = string;
    Event: string;
    Comment: string;
    Retry: Integer;
    function ToString : AnsiString;
  end;

Description

THTTPServerEvent represents a server-sent event for real-time communication with web clients. This structure contains all the fields needed to send events to clients using the Server-Sent Events (SSE) standard.