[Pas2js] pas2js and server sent events

Luca Olivetti luca at ventoso.org
Fri Aug 26 14:42:27 CEST 2022


El 26/8/22 a les 13:58, Michael Van Canneyt ha escrit:
> 
> 
> On Fri, 26 Aug 2022, Luca Olivetti wrote:
> 
>> El 26/8/22 a les 11:32, Michael Van Canneyt ha escrit:
>>
>>
>>> I added the definition of EventSource class to the weborworker unit, 
>>> so you
>>> can work in a type-safe manner.
>>
>>
>> Thank you.
>> In case I go the websocket route I'll have to use a different server 
>> on a different port than fpWeb, right?
> 
> No.
> 
> The HTTP implementation of FPC understands the upgrade request and will
> switch to websocket, so you can use the same port.
> 
> You must use trunk for this, however.

Mmmh, in case I don't want to use trunk, will the browser impose some 
restriction to connect to a different port?

Bye
-- 
Luca


More information about the Pas2js mailing list