[Lazarus] fpWeb and server-sent events
luca at wetron.es
Thu Jun 4 10:55:14 CEST 2020
El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit:
> On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote:
>> I need to embed a simple web server in my application that
>> 1) should server a couple of static files
>> 2) send server-sent events
>> I can see that 1) is easy, but 2) I cannot see how (fpWeb model
>> doesn't seem to allow to take over the socket and keep sending data on
>> I saw an old message regarding websockets and bauglir-websocket but it
>> seems it implements a different server and I'd like to run everything
>> from the same socket.
> Simply said: You can't in FPC.
It turns out I can with some careful, or reckless ;-), overriding.
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the lazarus