Streaming API gives error 420 on restart of my nodejs app


I am running an nodejs app, in which i have included Streaming api.
When ever i push the code to the live application from local and restart my node then i get 420 twitter error code.

I got that 420 error is caused by multiple connection with same api keys, so according to this when i restart my Node Js a new connection is established(I think). so in this situation how to disconnect my old stream connection on restart of Node.


Did you ever resolve this issue? I am experiencing something similar with node and streaming. I am seeing 420 errors even though I think I have only one connection. I’m using Twit, and I’ve tried several other node packages. They all seem to open multiple streaming connections.