Closed weepy closed 13 years ago
I can't see difference in code chunks. please, update
durhhhhhh !
updated !
"Getting acknowledgements" in readme states that functions of length > 1 trigger manual acknowledgement, while of length . < 1 should fire automatic acknowlegdement.
BTW, where do you define callback
?
ah - ok - missed that bit of the docs. callback is defined in an outer scope:
world.remote = function(o, method, args, fn) { var callback = fn && function(data) { fn.apply(o, arguments) } socket.emit('world', o.id, method, args, callback) }
On Tue, Jun 21, 2011 at 11:54 AM, dvv < reply@reply.github.com>wrote:
"Getting acknowledgements" in readme states that functions of length > 1 trigger manual acknowledgement, while of length . < 1 should fire automatic acknowlegdement.
BTW, where do you define
callback
?Reply to this email directly or view it on GitHub:
https://github.com/LearnBoost/Socket.IO-node/issues/268#issuecomment-1409393
Am sorry, but fn
is defined? Just to be sure callback
is really a Function ;)
idea is that if fn is not provided (hence undefined) then I don't want an ack.
hi -- there seems to be some check of the arity of the function callback function :
throws an error on the server ( callback undefined ) , whereas :
works ok --- why is this ?