kernl API
    Preparing search index...

    Function createUnreadCount

    • The shell's own unread count. A provider's unread number never goes down, because nothing tells a provider what was read, so the shell counts what arrives while the person is elsewhere.

      Returns UnreadCount

      A count at zero.

      const unread = createUnreadCount();
      const stop = unread.watch(kernl.messaging.composite(), () => messagesOpen);