I am using Angular and then the Angular doc for JSDoc. As such, I am documenting my parent class and functions similar to the following.
/**
angular.module('MyApp').factory( ...
/**
So, with your text above, it might look like:
/**
/**
This will do that and ... */ exports.addSocketEvents = function(socket) { socket.on('something_1', function(data) { ... });
/**
... };
/**
Will do this and that and will respond with ... */ exports.addRoutes = function(app) { app.patch('/something/:id/juhu', function(req, res) {...});
/**