I listen to the Tweet Steam using Linq2Twitter filter. The code runs fine (so far 2 days without interruptions), but twitter also sends quite a lot of data.
I read that twitter enabled gzip on the steaming api in 2012. How can i exploit this in Linq2Twitter? I cannot seem to find any information on the matter or any property I can set. I have found auth.UseCompression but that does not seem to do anything?
The important parts of my code is:
var auth = new SingleUserAuthorizer
Credentials = new InMemoryCredentials
ConsumerKey = "x",
ConsumerSecret = "y",
OAuthToken = "z",
AccessToken = "v",
auth.UseCompression = true;
auth.UserAgent = "Linq2twitter 1.0";
using (var twitterCtx = new TwitterContext(auth))
twitterCtx.Log = logTextWriter;
(from strm in twitterCtx.Streaming
where strm.Type == StreamingType.Filter && strm.Locations == "-6,50.45,0.43,58"
select strm).StreamingCallback(strm =>
processTweet(strm); //Use a JSON parser
The steam is not zipped, because I can read it directly in the parser without using any Gzip c# library. Is it possible to enable Gzip compression in Linq2twitter as described [Here]?(https://dev.twitter.com/docs/streaming-apis/processing#gzip-compression