[Lazarus] fpWeb and server-sent events

Michael Van Canneyt michael at freepascal.org
Thu Jun 4 15:37:49 CEST 2020

On Thu, 4 Jun 2020, Luca Olivetti via lazarus wrote:

>>      FServer.Port:=8080;
>>      FServer.Threaded:=true;
>>      FServer.Run;
>>    except
>>      on E:Exception do
>>      begin
>>        writeln(E.Message);
>>        sleep(1000);
>>        FServer.Free;
>>      end;
>>    end;
> Oh, and I had to do some more overriding so that the response could have 
> a reference to the calling thread (needed if I want to use synchronize).

That seems a bit strange, since you can do synchronize without needing
access to the thread object using a class method of TThread ?

Can you send me the changes you had to do ?


More information about the lazarus mailing list