ntwitter
ntwitter copied to clipboard
Refresh the track list of a stream
How can I refreh a stream params to track more hashtag without relaunch my server ? I have a database wich provides me the track list, and when a new hashtag to track is iserted, how can I refresh the stream track list ?
??? :c
I would pass the tracking list as an array and every time you can manipulate the array (push something new or find and remove an item) so you can kill the streaming and start it again without restarting your entire app.
@maziyarpanahi when you say kill the stream, do you mean calling stream.destroy()? Lately this seems to be causing issues for me. I think there may be a new protocol for terminating/restarting streams?