[Lazarus] fpWeb and server-sent events

Luca Olivetti luca at wetron.es
Wed Jun 3 19:03:56 CEST 2020

El 3/6/20 a les 18:53, silvioprog via lazarus ha escrit:

> 2) As Michael explained, unfortunately, it is not supported in FCL-Web 
> (yet) . However, if you want a SSE structure out-of-the-box, you can 
> provide it using the Brook streaming, e.g.:
> Minimal console example: 
> https://github.com/risoflora/brookframework/blob/expr/Examples/Console/FPC/httpsrvsse.lpr 
> Minimal LCL example: 
> https://github.com/risoflora/brookframework/blob/expr/Examples/LCL/HTTPServerSSE_frMain.pas

Thank you.
I tested the 2 ports approach (fpweb on one port and a custom socket for 
SSE on a different port) and it works, but this is nicer.
Is brookframework stable enough to run 24/7?

Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

More information about the lazarus mailing list