Sign in Join
FPDoc Onlineexperiment

TCustomHTTPEventSource.ReadEvent function

Member of TCustomHTTPEventSourcepublicIn unit fpHTTPClient

Reads one Server-Sent Event from the stream

Declaration

pascal
function ReadEvent(out aEvent: THTTPServerEvent; 
 aConcatData: Boolean=True): Boolean

Arguments

aEvent

The Server-Sent Event that was read

aConcatData

Whether to concatenate multi-line event data

Function result

True if an event was successfully read

Description

Reads one Server-Sent Event from the stream. Will block if no data is available. Returns False if no event could be read or the stream is closed.

See also

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