Reconnecting After Twitter Streaming Disconnect Status Code 7
I have been working on streaming twitter data to my application and nearly
managed to get things working by using some of the code from the following
StackOverflow question: Getting 401 from Twitter Stream API using C#.
However, if I close the connection whilst the streaming is taking place
within my application and try to restart it, I get the following API
response:
{"disconnect":{"code":7,"stream_name":"sbhomra-statuses171190","reason":"admin
logout"}}
I understand from the Twitter documentation that:
The same credentials were used to connect a new stream and the oldest was
disconnected.
But how do I go about reconnecting to my stream after this error has
occurred?
No comments:
Post a Comment