Mainkan Notification Sound di Chat JS

function playSound(url) {
  const audio = new Audio(url);
  audio.play();
}
Bored Beetle