[erlang-questions] Two beautiful programs - or web programming made easy
Florian Weimer
fw@REDACTED
Sun Feb 13 11:18:53 CET 2011
* Joe Armstrong:
> How the heck can you easily send an an asynchronous message from a client to
> a server?
>
> HTTP get and post wait for a reply and thus are synchronous.
>
> By asynchronous I mean "fire and forget" like UDP.
>
> If it easy easy them I'd love to know how ..
XMLHttpRequest has an asynchronous option.
And you can get emulate a single full-duplex connection using two
half-duplex ones, so Websockets is just an optimization, and likely
not even a very much needed one. The barrier right now seems to be
the BSD sockets API and kernel state management, and you still have
that with Websockets.
More information about the erlang-questions
mailing list