Black Lives Matter. Please consider donating to Black Girls Code today.

Streaming and keep refreshing graph after click on the button

I’m working on Twitter streaming app. My assumption was to put phrase in search box, click start streaming and then refreshing graph until click stop streaming. I was trying to do this with events and states but it didn’t work.