CometChat Forum » Javascript
0 FOLLOWERS
A forum for support questions related to Javascript and Typescript programmings like ReactJS, Angular, Vue.js and jQuery.
CometChat Forum » Javascript
1y ago
When 2 users chat with each other the CometChatMessageList doesn’t always update. This is happening in the local, staging and prod environment. Sometimes the message will appear sometimes not. Refreshing will make all the message appear. The message will always appear in the CometChatConversationList.
We updated to: @cometchat-pro/chat": “^3.0.9” and it is still an issue.
We are using the SDK.
1 post - 1 participant
Read full topic ..read more
CometChat Forum » Javascript
1y ago
Hello,
I’m curious to know if the javascript SDK allows any way of holding multiple logged in sessions for different users, on the same platform/webpage.
Thank you!
1 post - 1 participant
Read full topic ..read more
CometChat Forum » Javascript
1y ago
Hi cometchat team,
How to filter out Missed Message Edit Events messages apart from filtering out at the client-side using custom filtering logic.
I can see a similar question here Filter action messages, but it is for ios sdk.
image704×978 185 KB
1 post - 1 participant
Read full topic ..read more
CometChat Forum » Javascript
1y ago
We are trying to integrate CometChat into our existing app and use the CometChatGroupListWithMessages. Randomly we will see a 401 error trying to call APIs. For example on page loads I will consonantly see it on this call: https://<APP_ID>.apiclient-us.cometchat.io/v3.0/groups?per_page=30&page=1. The initialization completed successfully and was put in our main.ts. Is this the right place for that?
We also noticed using the CometChatUI, this will happen on load as well but when we clicked to a different tab it works and clicking back works which is the same call on load.
Any ideas?
3 ..read more
CometChat Forum » Javascript
1y ago
Hi guys, quick question. We designed our app without any explicit logout. The user just closes the browser window.
Is there some sort of timeout that logs out the user after a while when no active connection is established? How long would that timer threshold be? I’m wondering what kind of an effect that behavior would have on the concurrent users.
1 post - 1 participant
Read full topic ..read more
CometChat Forum » Javascript
1y ago
Hello, I wanted to know what I should do to be able to change the positioning of the CometChat logo, I am using Javascript SDK.
The new position of the CometChat logo should be to the right of the “Exit” button in the upper right corner
chatEjemplo1604×858 177 KB
1 post - 1 participant
Read full topic ..read more
CometChat Forum » Javascript
2y ago
Hi,
we store information regarding muted/archived groups in the metadata of a user object.
When I log in with a user, I can see the user object in the local storage.
image2024×47 5.67 KB
I change some info in the metadata (in production, for example, this could happen when a user adds a chat to mute/archive list). I simply change the name of the user in the Metadata tag.
image697×247 11.3 KB
I log in again with the same user. The old (not updated) version of the user object is in Local Storage.
When I log in with a totally different user, THEN log in again with the original user, the ..read more
CometChat Forum » Javascript
2y ago
We are working on an Angular app and modified the groups component according to our needs. More specifically, we adopted a parent/children approach where the parent chat group is the header of an expansion panel, whereas the children group is just an item of the panel.
Occasionally (and that’s what makes it hard to track down this error!) when we click on the children group, we receive the following error message:
ERROR Error: Uncaught (in promise): o: {“code”:“NO_WEBSOCKET_CONNECTION”,“name”:“NO_WEBSOCKET_CONNECTION”,“message”:“Connection to our Websockets server is broken. Please retry aft ..read more
CometChat Forum » Javascript
2y ago
I made this script but I don’t get it to switch to another person, what did I do wrong?
function change_player(on){
"use strict";
if(document.getElementById("inputbet").value.length != 0){
if(a==1){
//speler 2 actief
document.getElementById("player1").style.backgroundColor = "transparent";
document.getElementById("player1").style.border = "thin #FCC solid";
document.getElementById("player1").style.color = "#FCC";
document.getElementById("player2").style.backgroundColor = "#B4FAD7";
document.getElementById("player2").style.border = "thin #B4FAD7 solid";
document.getElementById("player2 ..read more
CometChat Forum » Javascript
2y ago
I write a sound file in the “wav” format (for about three seconds). When the page is loaded, playback occurs. After the file is playback, you need to download a new file and turn on playback again. In my plan, I made such a program:
(the file “au.js”):
function replay()
{
var aud = document.getElementById(“audio_label”);
aud.src = “cap.wav?cb=” + new Date().getTime();
aud.load();
aud.play();
}
function hproc(e)
{
replay();
}
var x = document.getElementById(“audio_label”);
x.addEventListener(‘ended’,hproc,false);
(the “index.html”):
…
…
But something does not work.
1 post - 1 participant
Read ..read more