The first argument of the async callback should be the error object, so it should really be returning null
if everything was ok
function(err, results){
console.log(results);
console.log('emitting GPS...');
socket.emit('GPS', {gpsResults: results.one, thresholds: results.two, PEMSID: PEMSID, count: count, length: PEMSToDisplay.length, checked: checked});
count++;
});
same goes for the callbacks
callback(null, fullResults);
etc, to pass null
to the error handler the async callback.
There's an example in the documentation showing exactly how it's done.