question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to subscribe to incoming/outgoing message events?

See original GitHub issue

I’ve read the documentation and cheat sheet a few times and searched the issues here, and am not seeing an explanation of how to subscribe to incoming/outgoing message events for CCP.

I do see this kind of thing in the dev console:

[2019-12-30T00:32:28.824Z] [INFO]: ContactId-a52e3078-48be-486c-bacf-938e04af6716: Subscribed successfully to eventName: INCOMING_MESSAGE

I am able to hook into this kind of functionality on the sample chat UI, and assumed there would be something similar in the CCP JavaScript?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
winzigcommented, Jan 1, 2020

Well I figured out one aspect of the issue. I had to include amazon-connect-chat.js from the amazon-connect-chat.js project in my page. If this is in the documentation somewhere, I’m not seeing it…

Now I can get past that Cannot read property 'setGlobalConfig' of undefined error, but am seeing other problems still and am so far unable to tie into the onMessage events for a chat session, nor send messages programmatically, on a consistent basis.

0reactions
winzigcommented, Jan 7, 2020

PR #207 addresses the last part of my issue, so closing this, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Team Messaging events - RingCentral Developers
In order to subscribe to an outgoing event, your application must have the "Webhook Subscription" scope associated with it.
Read more >
SUBSCRIBE-NOTIFY Passthrough - Cisco
The SUBSCRIBE-NOTIFY passthrough framework can only pass through events when there is a one-to-one association between the incoming request and the outgoing ......
Read more >
Subscribing to Session Events : OnixS .NET FIX Engine
The following table describes the meaning of all events exposed by the T:FIXForge.NET.FIX. ... WriteLine("Incoming session-level message: {0}", e.
Read more >
Voice SDK Call Message Events | Twilio
Once a Call is active, your server-side must set up a subscription to a Call's messages by making a POST request to the...
Read more >
How to alert when Event hub incoming and outgoing ...
Currently, the only way we can tell is to periodically pull up the chart of incoming and outgoing messages for all our event...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found