Streaming Filter

Mar 30, 2014 at 8:06 PM
Hi Joe,

Have you notice an error with Streaming and the strm.Track is set to a string that slows the stream up to a crawl? It bombs after about 30 seconds with a JSON error.

Error reading JObject from JsonReader. Path '', line 0, position 0.

It works great if I have several terms in my .Track like "Foo,Bar,DC,Leica" but with just one "Leica", it bombs after 20 or 30 seconds.

Not a super big deal, just wanted to understand what is happening.


Mar 31, 2014 at 3:50 AM

The stream will send a keep-alive message, which you'll see as an empty string, to keep the connection from timing out. This is normally on the 20-30 second interval that you're describing. You should check to see if it's a keep-alive before trying to parse.

Mar 31, 2014 at 4:41 PM