So I'm trying to build a simple app that relies on setInterval for running tasks at specified intervals.The issue I'm having is tracking those specific intervals and keeping track of what ones are running and how to clear specific intervals.I have an array that holds the return values of setting intervalsthis.handle = setInterval(function() {self.ping();}, this.timeout);return this.handle;This is returned to the main app holding the return values. I am trying to send these values via express response but it gives the error "error converting circular structure to json". I've used node's built it inspect() but I didn't find out how to convert this back into the correct form.Any insight would be appreciated.
Submitted February 08, 2019 at 01:42AM by chaoticLibs
No comments:
Post a Comment