What is the prerequisite to using the streaming api?


#1

I cannot establish a connection to the streaming API. I recall reading something about requesting access to the streaming API, but cannot find anything on that. When I try to connect, I get a null error and no response.


#2

There’s no special access needed to connect to stream.twitter.com feeds. Are you using streaming-specific libraries? Some standard HTTP packages wait for the response to terminate before delivering the response. Since streaming endpoints try to stream data forever, these libraries usually run out of response buffer space and return an error. You’ll need to use an approach which reads data directly off of the socket as it is delivered.