function updateClientAvatar
updateClientAvatar(
userId: string,
avatarMime: string
): void

Records userId's new avatar on their clients, so presence and the typing list show it, and rebroadcasts presence. routes/avatars.ts calls it on an upload.

Parameters

userId: string
avatarMime: string

Return Type

void

Usage

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