API Support Forum
OEC API > API Support > Messages from Server
Author Topic: Messages from Server
(2 messages, Page 1 of 1)
Moderators: VPfau
CZendejas116
Posts: 51
Joined: Apr 13, 2011


Posted: Jun 08, 2011 @ 01:46 PM             Msg. 1 of 2
Hi,

Today I was working with an app thta I developed, which uses OEC API. At the same tie I have checking orders in TDM Demo, in wich I received a message, something about order in SIM will not work for a while, but I think that message provoked that my app broken and stopped to working.
Do I have to handle that kind of messages sended by OEC Server? And, how do I have to handle them?

Thanks in advenace.

Claudia Zendejas
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 08, 2011 @ 02:12 PM             Msg. 2 of 2
Hello,

you need to handle http://www.openecry.com/api/api/OEC.API.OECClient.OnNewsMessage.html event. Such messages will come with Channel = "SYSTEM" and Message will start with "ALERT:"

Victor Vins
Software Developer