on notification also sound in javascript code example
Example: play notification sound on chat js
function playSound(url) {
const audio = new Audio(url);
audio.play();
}
function playSound(url) {
const audio = new Audio(url);
audio.play();
}