[fpc-pascal] web app and application persistency

Michael Van Canneyt michael at freepascal.org
Mon Aug 1 19:05:57 CEST 2011



On Mon, 1 Aug 2011, Andrew Brunner wrote:

> On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho
> <felipemonteiro.carvalho at gmail.com> wrote:
>> On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner
>> <andrew.t.brunner at gmail.com> wrote:
>>> I agree with this one.  The only thing I could add would be AJAX &
>>> WebSockets for really advanced applications.
>>
>> Do WebSockets allow to use TCP sockets in JavaScript or is it something else?
>
> WebSockets are persistent connections that never close unless
> directed.  Plus the server can push data over the socket and the
> client can process data on an event basis.
>
> HTTPRequest is query response.   WebSockets is asynchronous and
> perfect for event driven programming over the web.

..But it is not always supported by the browser (as Marco indicated)
and many firewalls simply don't agree with websockets.

So unless you have absolute control over these parameters, 
it's a bad idea to rely on websockets.

Michael.


More information about the fpc-pascal mailing list