Extension: Chat Widget, messages aren't arriving

I am integrating CometChat in my website using the new extension “Chat Widget”; I’ve two widgets with different configuration ( to show sidebar or not ).

I have this config (example):

  • Widget 1:
    ‘UID’: ‘superhero1’,
    ‘defaultID’: ‘superhero2’,
    ‘defaultType’: ‘user’,

  • Widget 2:
    ‘UID’: ‘superhero2’,
    ‘defaultID’: ‘superhero1’,
    ‘defaultType’: ‘user’,

I open the website in two different tabs each with one widget and try to talk between them but:

  • Messages aren’t arriving.
  • Messages sent by one widget, sometimes are appearing as sent in other widget conversation.

What’s wrong ?

Hello @mda,

Can you please open the users in two different browsers and not two different tabs. Please let us know if you face any issues.

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari,

Checked, using two different browsers the issue is not happening. What’s causing this behavior?

It’s important to me being able to using it between tabs, as otherwise we’re going to get some bug reports from users.

Using React sample app the behavior will be same?

Thanks, regards.

Hello @mda,

Two different users cannot login into two different tabs. However, a single user can use multiple tabs. Can you please let us know about your use-case a little bit, so that we can help you better.

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @mayur.bhandari,

We have two parts in our website:

  • Owner site, which has a list of items and a chat.
  • User site, which opens an item of a owner and has a chat just with that owner.

Is usual that to check things owner opens both sides to check the behavior he’s going to offer to his users.

Regards.