TsgcSSEClient › Methods › Close

Close Method

Stops the stream and the automatic reconnection.

Syntax

procedure Close;

Remarks

Stops the background thread, cancels any pending reconnection and sets ReadyState to sseClosed. LastEventId keeps its value after Close, so it can be saved and restored later.

Example


oSSE.Close;

Back to Methods