interface PlaylistDumpsUpdatedMessage

Sent by the server when dumps are added to, removed from or reordered in a playlist, to those who can see it, and when one of its dumps is deleted or changes visibility, which changes what its viewers see of it.

Properties

type: "playlist_dumps_updated"
playlistId: string
dumpIds: string[]

Only the dumps this socket's user may see, in order: another user's private dump is left out.

optional
lastDumpAt: Date

When the latest of them was added, the playlist's lastDumpAt for this socket's user. It is missing when dumpIds is empty.

Usage

import { type PlaylistDumpsUpdatedMessage } from "shared/ws.ts";