function playChime
playChime(
kind: ChimeKind,
eventId: string
): void

Plays the chime for a live event, unless sounds are off, another tab already chimed for eventId, or a chat blip played less than 4 seconds ago. The caller must pass an id that is the same in every tab, such as the message's.

Parameters

eventId: string

Return Type

void

Usage

import { playChime } from "src/utils/shared/sound.ts";