play notification sound on chat js 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();
}