无需重新打开流即可更改 Twitter 流过滤器关键字
是否可以在 Twitter 流打开时更改过滤器关键字?
Is it possible to change the filter keywords on a Twitter stream while it's open?
我希望遵循 http://dev.twitter.com/pages 的第二点/streaming_api 启动前检查清单,创建最少数量的连接",避免每次我希望关注的关键字发生变化时关闭和重新打开流.
I'm looking to follow the second point of the http://dev.twitter.com/pages/streaming_api 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.
你不能在不重新连接的情况下更改过滤谓词,但是流 API 概念页面有说明 如何改变谓词并使用户体验尽可能流畅
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