kernl API
    Preparing search index...

    Interface UnreadCount

    Messages that arrived while the person was not looking.

    interface UnreadCount {
        count$: Observable<number>;
        clear(): void;
        count(): number;
        watch(
            backend: Pick<MessagingBackend, "status" | "subscribe" | "unsubscribe">,
            reading: () => boolean,
        ): () => void;
    }
    Index
    count$: Observable<number>
    • Returns void

    • Returns number

    • Count what arrives from other people while reading() is false, until the returned function is called.

      Parameters

      • backend: Pick<MessagingBackend, "status" | "subscribe" | "unsubscribe">
      • reading: () => boolean

      Returns () => void