function setClientTyping
setClientTyping(
client: WsClient,
typing: boolean
): void

Records a client's chat_typing, and broadcasts the typing list when the client starts or stops. The route also clears it when the client sends a message. A client that stops without saying so is expired after TYPING_TTL.

Parameters

client: WsClient
typing: boolean

Return Type

void

Usage

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