Hi there,
What is the correct way to stop the stream?
Normally you should always be able to stop a stream using Stream.StopStream().
Also, i used the StreamStopped event to shed some light on the matter, it returned null as a value.
The StreamStopped event returns the exception that occured to make the stream stop. Receiving null implies that the stream stopped normally, for example by invoking Stream.StopStream().
Please let me know if this help.
Linvi
What is the correct way to stop the stream?
Normally you should always be able to stop a stream using Stream.StopStream().
SimpleStream stream = new SimpleStream("https://stream.twitter.com/1.1/statuses/sample.json");
stream.StartStream(token, tweet =>
{
stream.StopStream();
});
This should stop the stream when you receive your first tweet.Also, i used the StreamStopped event to shed some light on the matter, it returned null as a value.
The StreamStopped event returns the exception that occured to make the stream stop. Receiving null implies that the stream stopped normally, for example by invoking Stream.StopStream().
Please let me know if this help.
Linvi