node-twitter icon indicating copy to clipboard operation
node-twitter copied to clipboard

Changing track and other stream options

Open unwitting opened this issue 9 years ago • 5 comments

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?

unwitting avatar Jul 17 '16 00:07 unwitting

+1. I'm also interested on this, it should be better documented.

enrichman avatar Jul 20 '16 08:07 enrichman

Me 2.

haddadnidal avatar Jul 29 '16 14:07 haddadnidal

Me 2. Please advise.

gabosdk avatar Aug 07 '16 21:08 gabosdk

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?

jonas-koeritz avatar Oct 30 '16 12:10 jonas-koeritz

This library is no longer maintained.

Here's an example of how to change tracking keywords with twitter-lite.

dandv avatar Dec 21 '18 04:12 dandv