Vasyl Zhuryk
Vasyl Zhuryk

Reputation: 1248

Salesforce Live Chat api concurrent requests

I've tried to extend my chatbot with salesforce live agent api. So I've implemented all the process, and chat works correct, except one thing - It won't work on multiple tabs. When one tab have long polling connection (left side on the screenshot), and I open new tab (right side) - old tab (left) receive:

409 Conflict
Duplicate Message Observer

enter image description here

Is it possible, and can I use multiple tabs with salesforce long polling connection on my online shop? (it is general situation, when customer has many tabs, and each of them should be with the same chat)

I use salesforce Messages api endpoint: https://developer.salesforce.com/docs/atlas.en-us.live_agent_rest.meta/live_agent_rest/live_agent_rest_Messages.htm

Upvotes: 1

Views: 710

Answers (1)

Piroteh
Piroteh

Reputation: 26

You can't work with multiple tabs on the Salesforce. You can make the backend part, where you can make a locker. (only one request pass to the SF, but all other waits for the master-request

Upvotes: 1

Related Questions