mathpaquette / IQFeed.CSharpApiClient

IQFeed.CSharpApiClient is fastest and the most well-designed C# DTN IQFeed socket API connector available
MIT License
120 stars 43 forks source link

Connection Lost event for streaming clients #39

Closed mrut2pac closed 5 years ago

mrut2pac commented 5 years ago

Would be nice to have a built in support for socket disconnected event for streaming clients so that the user will be notified when the underlying socket is closed and the updates will stop. Now until you make another request you won't know about the problem.

Nucs commented 5 years ago

Related: #25

mathpaquette commented 5 years ago

well, maybe we can create a simple watchlog for level1 quote and maybe level2. You can also check for level1 timestamp event and if you didnt receive anything, you're disconnected.

mathpaquette commented 5 years ago

gonna close it since this is related to the same issue.

mrut2pac commented 5 years ago

No problem. I have a monitor implementation that does what you described. I forked your repo, will implement additional stuff that I need, by maintaining your coding pattern. Later we can merge it back if you see value.