Firstly, I have searched the error message I'm getting and haven't been able to apply it to my case, so here goes...
I have built a little OLED Bitcoin price display thing and am connecting to cryptonator (via mrtimcakes https to http proxy) to get some prices. It all runs fine but after a few minutes I get the repeated error
Uncaught InternalError: Unable to create socket.
I poll the api once every 30 seconds and call a function to deal with the data. From what I understand this is a memory problem, but I'm at a loss as to how to progress. Code is here https://gist.github.com/gomako/bdac39e9616709aa952ac04d0d5de019 and looks a bit like dog vomit, so excuse me for that!