meteor Publishing Data Simulate delay in publications


Example

In real world, connection and server delays could occur, to simulate delays in development environment Meteor._sleepForMs(ms); could be used

Meteor.publish('USER_DATA', function() {
    Meteor._sleepForMs(3000); // Simulate 3 seconds delay
    return Meteor.users.find({});
});