TsgcSSEClient › Events › OnOpen
Fires when the server accepts the stream.
property OnOpen: TsgcSSENotifyEvent;
// TsgcSSENotifyEvent = procedure(Sender: TObject) of object
—
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.
procedure TForm1.OnSSEOpen(Sender: TObject);
begin
ShowMessage('stream open');
end;