function getChatMessagesAfter
getChatMessagesAfter(
after: ChatCursor,
limit?
): ChatMessage[]

Returns the first limit messages after after, oldest first. The chatbox uses it to fetch what it missed while the socket was down. limit is clamped to 1–100.

Parameters

optional
limit = DEFAULT_LIMIT

Return Type

Throws

APIException

500 when a row doesn't parse as a message.

Usage

import { getChatMessagesAfter } from "api/services/chat-service.ts";