function broadcastCommentLikeUpdate
broadcastCommentLikeUpdate(
commentId: string,
likeCount: number,
likerId: string,
action: "cast" | "remove",
onlyUserId?: string
): void

Sends comment_likes_update after the route stored a like, to everyone, or with onlyUserId to that user's sockets alone (for a comment on a private dump).

Parameters

commentId: string
likeCount: number
likerId: string
action: "cast" | "remove"
optional
onlyUserId: string

Return Type

void

Usage

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