-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Twitter Streaming #5
Comments
Did you see SampleApp? public async Task GetStream(Action<string> fetchAction)
{
var client = OAuthUtility.CreateOAuthClient(consumerKey, consumerSecret, accessToken);
client.Timeout = System.Threading.Timeout.InfiniteTimeSpan; // set infinite timespan
using (var stream = await client.GetStreamAsync("https://userstream.twitter.com/1.1/user.json"))
using (var sr = new StreamReader(stream))
{
while (!sr.EndOfStream)
{
var s = await sr.ReadLineAsync();
fetchAction(s);
}
}
} This code maybe work. |
Yes, I'm doing like in the sample:
This is getting stream:
This is launching of stream:
and here are hadlers for friends and tweets:
So I receive friends ID's, but don't receive tweets :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have some problems with implementing streaming API:
First time I have created stream without setting timespan and it had worked. But some time after it stoped working: on creating stream I just receive friends id's and no tweets.
Then I have tried to set timespan and get such error:
"This instance has already started one or more requests. Properties can only be modified before sending the first request."
but I set timespan after creating client and before any requests.
Thank you!
The text was updated successfully, but these errors were encountered: