fennb / phirehose

PHP interface to Twitter Streaming API
709 stars 189 forks source link

update keywords (tags) while connected #114

Closed HashmatWaziri closed 6 years ago

HashmatWaziri commented 6 years ago

how can we do the following : to change the keyword inside setTrack() without disconnecting the twitter streaming api. and then the streaming api should search the new tags.

JPeterson2015 commented 6 years ago

I am also wondering how this can be done? I'm pulling my keywords in from a database and that database can change frequently.

Anyone else know the answer to this?

fennb commented 6 years ago

I don't believe this is possible. Tags are set on a per connection basis, so you have to disconnect/reconnect.

I would recommend doing this periodically (maybe every 5 minutes or so), as otherwise you'll hit connection rate limits and your account will be banned.