Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Events stop firing

$
0
0
@StfSki

I think you are probably experiencing the Stalls of Twitter Stream API which is a known and documented behavior.
This stalls happens when your code is not going fast enough to handle the Tweets it receives from Twitter.

This can happen for example when you need to store data in a database or when you need to send these information back on the network.
Basically Twitter waits for you to get back on track but if you can't it sends you a Warning message to let you know that your are falling behind.
When the falling behind message is at 100% the stream connection is closed by Twitter.
var s = Stream.CreateSampleStream();
s.WarningFallingBehindDetected += (sender, args) =>
{
    Console.WriteLine(args.WarningMessage.PercentFull);
};
Please have a look into this.
Cheers,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>