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 code here: http://stackoverflow.com/q/17087290/1300806.
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”:“rednirusarmohb-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 using ASP.NET?
Thanks.