• That's really strange - and it's with the code you posted above - nothing else? I know 1v89 has some issues with the newly added Arrow Functions - but you don't seem to be using them. I'll see if I can reproduce it here.

    It'd be helpful if you could check process.memory().usage every so often while running the code though - it's possible there is a memory leak somewhere.

    WebSockets use the same underlying code, but if you're making 4 requests a second it seems that really you'd be much better off keeping a single connection open, and just sending the data you want, when you want. By not having the overhead of opening/closing a connection you could send data much more often than 4 times a second if you wanted.

About

Avatar for Gordon @Gordon started