API Support Forum
OEC API > API Support > AutoReconncet
Author Topic: AutoReconncet
(4 messages, Page 1 of 1)
Moderators: VPfau
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Jul 01, 2010 @ 05:05 AM             Msg. 1 of 4
Hey, I have noticed that when I am working with the API, in some occasions the client get's disconnected and I am no longer getting new ticks from the server.
In this case I would like to reconnect. I have noticed that there is a property in the connect that indicates that AutoReconnect mode, true or false.
When I am using the AutoReconnect ON (true) from time to time I still keep getting disconnected and staying disconnected. as far as I understand the auto reconnect should have prevented this by Auto reconnecting?
Since this is the case, (I keep getting disconnecting) This leads me to my question:

What is the current way to always keep my connection open?

I could create an independent service that keeps monitoring the connection status an reconnect if needed.
If so, what is the correct way to implement such a service?

10x,
Yogev

Yogev Cohen
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 01, 2010 @ 08:17 AM             Msg. 2 of 4
Hello, could you please send me your username and timestamp of the latest disconnect issue.

Victor Vins
Software Developer
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Jul 01, 2010 @ 01:04 PM             Msg. 3 of 4
my user name is "YYogev", but this is not my actual question.

Could you please elaborate on the auto reconnect feature.

If my internet connection break down for a few minutes. does the auto reconnect, re-connect as soon as the connection is restored?

Yogev Cohen
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 01, 2010 @ 01:10 PM             Msg. 4 of 4
Yes, auto-reconnect will reconnect connection automatically as soon as connection is restored. You can compare it with OEC Trader, it uses this functionality.

Victor Vins
Software Developer