TsgcSSEClient › Properties › LastEventId

LastEventId Property

Id of the last event received, sent as Last-Event-ID when the client reconnects.

Syntax

property LastEventId: string read GetLastEventId write SetLastEventId;

Default Value

''

Remarks

Public, read and write. The value is updated from the id: field of the events received and is sent in the Last-Event-ID header on every reconnection, so the server can resume the stream where it stopped. Set it before calling Open to restore a value saved by a previous run of the application. See Resume with Last-Event-ID.

Example


oSSE.LastEventId := '1042';
oSSE.Open;

Back to Properties