How can I close persistent http connections?

Is there a way to close persistent http-request connections?

I am building a node-red interface for Twitter's streaming API. This requires that I open a persistent streaming connection to an API endpoint.

I've got no trouble opening the connection....but have not worked out how to close them. I can restart node-red, but.. that's not ideal.

Deploying an update to a flow does not seem to disconnect anything, at the moment it's just creating a new connection and leaving the old one in place.

Any suggestions?

Thank you

I've found the issue.

The Stream is Chunked, but has no end. I need each of the chunks in realtime.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.