function sendToUser
sendToUser(
userId: string,
): void

Sends data to every socket of userId. The notification service sends notification_created and notifications_read with it, the follow service follows_changed, and the route chat_read_update.

Parameters

userId: string

Return Type

void

Usage

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