Sign in Join
FPDoc Onlineexperiment

THTTPServerEvent record

In unit HTTPDefs

Server-sent event data structure

Declaration

pascal
THTTPServerEvent = record

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.

Methods

ToStringpublicReturns string representation of the server event

Fields

IdpublicEvent ID for server-sent events
DatapublicEvent data content
EventpublicEvent type name
CommentpublicEvent comment
RetrypublicRetry interval for the event

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.