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:
- use java script timer check time , call function @ 23:59.
- 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:
Comments
Post a Comment