Changing track and other stream options
Given that Twitter only allows a single stream (with multiple parameters) at any one time, what's the advice for changing, say, the track on a stream? Closing the stream and opening a new one with new options, or somehow updating the stream's options while it's alive? If the first, what's a reliable way to kill the connection, and if the second, how?
+1. I'm also interested on this, it should be better documented.
Me 2.
Me 2. Please advise.
I will try a request.socket.end() inside the destroy method for streams to explicitly send a FIN packet to Twitter's Server. The current destroy() does not close the connection (at least in my application) and I am receiving DuplicateSteam errors when I try to connect to a new stream. (Which happens quite often, my application switches streams when my TV switches channels). Maybe this could also help on #159?
This library is no longer maintained.
Here's an example of how to change tracking keywords with twitter-lite.