Thanks for getting back to me. I have now implemented this in my application anyway. The problem I was having (stopstream being called after startstream) was due to me setting a timeout of 30s so that I could soak test with no twitter events arriving. It looks like the error was being cause by rate limiting. When I move the timeout out to 90s as per the Twitter documentation, it seems fine.
↧