Quantcast
Viewing all articles
Browse latest Browse all 2504

Chat 3PQ RetrieveMessages Never Returns Anything

Topic by Mike Waldron

Content

I'm trying to build a chat toolbar addin that

  1. Listens for the enduser to disconnect
  2. Starts a timer, and
  3. Forces chat termination when the timer expires

I have the addin basically functional, and I can call into the 3PQ API just fine, but the problem I'm having is that RetrieveMessages never returns anything. Ever, that I can tell. I'm trying to pick up an occurrence of  RNChatCompletedMessage but it doesn't seem to be working.

The guts of my timer function are below. I've left out some things so as not to paste a million irrelevant lines, but here's some background:

  • RetrieveMessages() is returning a success indicator, but there's nothing in my SystemMessagePart object on return.
  • getMessageTypes() is a function of my own that lists the message types. It uniformly returns "(None)" because smb.Items is null
  • I'm logging into the console as an agent, and chatting with myself in a browser window
  • The addin's authenticating with a separate account from the one I'm logging into the console with, so I don't clobber my session
  • There are some forum discussions on StartingSequenceNumber that I've tried to put into practice, but still no luck.
  • What the heck is transactionID? I'm starting it at 0 and incrementing it for each API operation, but is this right?

I'm at the point where I hope I'm doing something obviously and wildly wrong just so I can get over this hump, so if you see something please let me know.

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles