API Support Forum
OEC API > API Support > continuous connection
Author Topic: continuous connection
(2 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Nov 24, 2008 @ 05:14 PM             Msg. 1 of 2
I would like to leave my machine on over night or for a few days, to do some testing. Is there something I must do to keep the continuous connection for the data to keep streaming? I tried this the other day and seems like it stopped getting data sometime in the night. Is there some heart beat call to tell the server that I am still there?

"For every complex problem, there is a solution that is simple, neat, and wrong." H.L. Mencken
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Nov 25, 2008 @ 08:22 AM             Msg. 2 of 2
You do not need to do anything. OEC API sends keep-alive requests internally.
Please make sure you pass parameter AutoReconnect=true to the OECClient.Connect method, so API could restore connection in case it is lost.