On Mon, 2011-10-10 at 13:43 -0700, Herby Vojčík wrote:
> Hello,
>
> I am considering Amber as one of the choices for making client in a suite of
> client-server applications. The choice of client-server communication was
> socket.io. Is it possible to use socket.io from amber (I know it is possible
> to use other js libs, but is it easy to use callbacks in them, like convert
> block to closure or so?)?
Hi,
A block closure *is* a callback in JavaScript. By that I mean that it is
the same object.
anObject.on('hello', function(e) {...})
and:
anObject on: 'foo' do: [:e | ... ]
are strictly equivalent.
HTH,
Nico
>
> Thanx, Herby
>
> --
> View this message in context:
http://forum.world.st/socket-io-tp3891761p3891761.html> Sent from the Amber mailing list archive at Nabble.com.