Function: useMessages()¶
useMessages(
limit?): readonlyMessage[]
Subscribe to the client's rolling log of INDI message notifications.
The buffer lives on the client (see IndiClient.messages), not in this hook,
so a component that mounts late - a log panel opened on demand - still shows
everything received since the page connected.
Parameters¶
limit?¶
number = 200
Maximum messages to return (oldest dropped first).
Returns¶
readonly Message[]
The most recent messages, oldest first.