amittleider / AutoFinance.Broker

A Dotnet Core library to interact with Interactive Broker's Trader Workstation (IB TWS)
32 stars 16 forks source link

Enable connection timeout in TwsConnectionController #16

Closed dylinmaust closed 4 years ago

dylinmaust commented 4 years ago

For our use case, I've created a background job that periodically calls await connectionController.EnsureConnectedAsync() and broadcasts a heartbeat to SignalR clients. However, the background job is hanging forever if Trader Workstation isn't open. It might be beneficial to enable the timeout to allow consumers to handle underlying connection issues. Thoughts?

amittleider commented 4 years ago

Yes, I agree, this is better. I'll merge it.

If you want to communicate more easily for future PRs, you can drop me an email at amittleider at gmail