API Support Forum
OEC API > API Support > Chat messages not showing
Author Topic: Chat messages not showing
(2 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Jan 14, 2008 @ 04:25 AM             Msg. 1 of 2
I'm trying to support Chat in my software. To show my problem, I modified the OEC API Example to go to the prod server (the api server apparently doesn't support chat as there is never anyone at OEC showing there).

The problem is that when I send a message (even in the OEC API Example) it does not show up in RefreshMessages() (is not in OECClient.Global.Chat) until I disconnect and reconnect. Sometimes I can't even see OEC-initiated messages until I disconnect and reconnect. After reconnect I can see all the messages back and forth from the prior session(s).

Help?

foreach (ChatMessage message in OECClient.Global.Chat) {...}

Thanks,

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 14, 2008 @ 08:18 AM             Msg. 2 of 2
OECClient.Chat collection intended to provide messages (in/out) from previous sessions, up to 1 day back, at the loading time only.
Client app is responsible for keeping incoming and outgoing messages for the current session.