Use Javascript Timer in Node.Js Script to fire an event at certain time -


i have 40 or more timer in node script (a timer per connection) count time , call function when it's finished. job, want call function @ 23:59; have 2 solution:

  1. use java script timer check time , call function @ 23:59.
  2. use linux schedule emit event @ 23:59.

which more logical? there solution?

take @ node-cron module, i've used schedule recurring tasks on node apps before:

node cron


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -