Streaming issues

Nov 15, 2014 at 9:58 PM
Trying to use streaming in a Windows Phone 8.1 project (WinRT).
TwitterCredentials.SetCredentials(credentials.OAuthToken, credentials.OAuthTokenSecret, credentials.ConsumerKey, credentials.ConsumerSecret);
this.sampleStream = Stream.CreateSampleStream() as SampleStream;
            this.sampleStream.UnmanagedEventReceived += (s, args) => Debug.WriteLine("UnmanagedEventReceived " + args.JsonMessageReceived);
            this.sampleStream.WarningFallingBehindDetected += (s, args) => Debug.WriteLine("WarningFallingBehindDetected " + args.WarningMessage);
            this.sampleStream.JsonObjectReceived += (s, args) => Debug.WriteLine("SAMPLE JSON " + args.Json);
            this.sampleStream.StreamPaused += (s, args) => Debug.WriteLine("STREAM PAUSED");
            this.sampleStream.StreamResumed += (s, args) => Debug.WriteLine("STREAM RESUMED");
            this.sampleStream.StreamStarted += (s, args) => Debug.WriteLine("STREAM STARTED");
            this.sampleStream.StreamStopped += (s, args) => Debug.WriteLine("STREAM STOPPED");
            this.sampleStream.DisconnectMessageReceived += (s, args) => Debug.WriteLine("DISCONNECT MESSAGE RECIEVED");
            this.sampleStream.TweetReceived += (s, args) => Debug.WriteLine("TWEET " + args.Tweet.Text);
Testing like this, FilteredStream and UserStream never receive any events. Sample Stream occasionally fires one JSONObject received event with content on a deleted tweet when streaming first begins and then receives no more.

I set up a timer to check whether the stream was still alive and state was constantly "Resume" which I think is correct.

Any ideas why functionality seems to be broken for me?
Nov 17, 2014 at 12:10 PM
Hi Brad,

I will have a look into this issue. I remember the stream working for me on Windows Phone but I will test this again.

Associated Work Item

Nov 17, 2014 at 9:32 PM
Thanks Linvi.

Let me know if there is any more i can do to help debug the issue.