function broadcastPlaylistChange
broadcastPlaylistChange(
before: Playlist | null,
after: Playlist | null,
): void

Tells the clients that may see a playlist how it changed, as broadcastChange says, for the playlist service after every write to its details. A playlist turned private thus leaves the others' views without their learning what it became. members are the dumps of after: each socket gets the playlist with the count of those its user may see and the date of the latest, the owner's private dumps being theirs alone to count.

Parameters

before: Playlist | null
after: Playlist | null

Return Type

void

Usage

import { broadcastPlaylistChange } from "api/services/ws-service.ts";