Is it possible to change the filter keywords on a Twitter stream while it's open?
I'm looking to follow the second point of the http://dev.twitter.com/pages/streaming_a开发者_运维问答pi pre-launch checklist, "Creating the minimal number of connections", and avoid closing and re-opening the stream each time the keywords I wish to follow change.
you can't change the filter predicate without reconnecting, but the streaming-api concepts page has instructions how change the predicates and making the user experience as smooth as possible
Official documentation says you cannot update the filter predicates; http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-predicates
精彩评论