LearnBoost/socket.io — Issue #707: Have callback syntax
Author: M3lz
Created: 2012-01-05 00:08:10+00:00
State: open

SERVER:
socket.on('something', function (var1, var2) {
// do something
return [newVar1, newVar2]
}

CLIENT:
socket.emit('something', var1, var2, function (newVar1, newVar2) {
// do sonething with the new data
})

All this is really changing is that if the "socket.on" returns an array, it sends it back to the client and runs the callback, and this would be so useful.