node/index.js
function error(socket, err) {
  socket.emit(SECRET + ':error', {
    message: err.message,
    stack: cleanedStack(err.stack)
  });
}
function error(socket, err) {
  socket.emit(SECRET + ':error', {
    message: err.message,
    stack: cleanedStack(err.stack)
  });
}
function error ( socket , err ) { socket . emit ( SECRET + ':error' , { message : err . message , stack : cleanedStack ( err . stack ) } ) ; }
notify the socket there was an error
notify the socket there was an error