Server-sent event data structure
Source position: httpdefs.pp line 566
type THTTPServerEvent = record |
||
public |
||
Id: string; |
|
Event ID for server-sent events |
Data: array of string; |
|
Event data content |
Event: string; |
|
Event type name |
Comment: string; |
|
Event comment |
Retry: Integer; |
|
Retry interval for the event |
function ToString; |
|
Returns string representation of the server event |
|
||
end; |
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.