On Mon, 1 Aug 2011, Andrew Brunner wrote:

On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho
<felipemonteiro.carva...@gmail.com> wrote:
On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner
<andrew.t.brun...@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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to