[Pas2js] pas2js and server sent events

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Aug 26 17:59:35 CEST 2022


On Fri, 26 Aug 2022 15:45:32 +0000 (UTC)
Luca Olivetti <luca at ventoso.org> wrote:

> El 26/8/22 a les 17:34, Mattias Gaertner ha escrit:
> > On Fri, 26 Aug 2022 15:11:42 +0200 (CEST)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >   
> >> [...]
> >> In each case, you'll need trunk if you want websockets:
> >> websockets are only available in trunk.  
> > 
> > Note that the units can be compiled with fpc 3.2.2 just fine.  
> 
> I tried but I failed:
> 
> -fcl-web depends on fcl-hash which is not available in 3.2.2
> -fcl-hash depends on basenenc in fcl-base
> -I copied basenenc.pp to fcl-hash and could compile it
> -then fcl-web uses fpthreadpool.pp, copied it from trunk
> -then fcl-web fails to compile:
> 
> 
> fphttpserver.pp(1068,39) Error: identifier idents no member "CanRead"
> fphttpserver.pp(1634) Fatal: There were 1 errors compiling module,
> stopping Fatal: Compilation aborted

Copy these units to a folder 

fpcustwsserver.pp
fphttpserver.pp
fpthreadpool.pp
fpwebsocketclient.pp
fpwebsocket.pp
fpwebsocketserver.pp
httpdefs.pp
httpprotocol.pp
httproute.pp
sslsockets.pp
ssockets.pp
wsupgrader.pp

Compile wsupgrader.pp

Mattias



More information about the Pas2js mailing list