interface ChatReadUpdateMessage

Sent by the server to every socket of a user after their ChatReadMessage, so that all their tabs and devices update the chat's badge.

Properties

type: "chat_read_update"
readAt: string
unread: number

Counts only the messages of other users after readAt.

Usage

import { type ChatReadUpdateMessage } from "shared/ws.ts";