Mesibo Javascript Popup Integration for one to many chat

99 Views Asked by At

I have integrated Javascript Messenger & Popup https://github.com/mesibo/messenger-javascript/

I want use Popup Integration or Multitab-Popup for more than one user like Javascript Messenger where we can chat with multiple user (one-to-many)

For that I have display list of users on Page and on clicking on user I am loading popup in iframe with destination user mobile no, destination name and logged in user access token from mesibo. It is working fine for single user while I am loading second user in iframe then first user getting logged out.

Can anyone please help me with this?

Thanks

1

There are 1 best solutions below

5
On

You should initialize mesibo only once and not every-time you open a new pop-up. The best place for mesibo initialization is when your page loads.

Your popup code should only have send and receive functionalities. If you are using mesibo popup.html example, you should extract initialization and move it to your main page.