function broadcastDumpRelatedChanged
broadcastDumpRelatedChanged(
dump: Pick<Dump, "id" | "isPrivate" | "userId">,
others: Pick<Dump, "id" | "isPrivate" | "userId">[]
): void

Sends dump_related_changed after the links between dump and each of others changed, for the backlink service. A link shows only to those who may see both its ends, so a socket is told only when its user may see dump and one of others, and of those alone.

Parameters

dump: Pick<Dump, "id" | "isPrivate" | "userId">
others: Pick<Dump, "id" | "isPrivate" | "userId">[]

Return Type

void

Usage

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