LearnBoost/socket.io — Issue #781: Why no error parameter in emit/send acknowledge mechanism?
Author: mokesmokes
Created: 2012-03-05 17:39:03+00:00
State: open

While playing with the ack API I noticed that if the receiver disconnects without returning any data to the sender then the acknowledge callback is never fired. Wouldn't the API be easier/cleaner if it looked like:
socket.emit('ferret', 'tobi', function (err, data) {...
Thus enabling catching disconnects or other problems on a per-message basis?
Thanks.