function broadcastCommentCreated
broadcastCommentCreated(
comment: Comment,
dump: { isPrivate: boolean; userId: string; }
): void

Sends comment_created to those who may see the comment's dump: everyone, or its owner alone when it is private. The comments route calls it, as it does the two below.

Parameters

comment: Comment
dump: { isPrivate: boolean; userId: string; }

Return Type

void

Usage

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