TsgcSSEClient › Events › OnOpen

OnOpen Event

Fires when the server accepts the stream.

Syntax

property OnOpen: TsgcSSENotifyEvent;
// TsgcSSENotifyEvent = procedure(Sender: TObject) of object

Default Value

—

Remarks

Fires after the server answers with status 200 and the text/event-stream content type, on the first connection and after every successful reconnection. The counter of failed attempts restarts at this point.

Example


procedure TForm1.OnSSEOpen(Sender: TObject);
begin
  ShowMessage('stream open');
end;

Back to Events