kernl API
    Preparing search index...

    Function messagingModule

    • The dm domain as one view over the providers a host lists, and the person's choice among them as kernl.messaging (D-016, D-018). Each provider is its own import, so the libraries behind the ones left out are never loaded. Without this module dm is not offered.

      Parameters

      Returns KernlModule<"messaging", MessagingRegistry>

      The module; its api is the MessagingRegistry. Load it after people and profiles for recipients in any form and named conversations.

      const kernl = createKernel({ host, modules: [messagingModule({ providers: [privateDm(), legacyDm()] })] });
      kernl.messaging.list().map((entry) => entry.provider.id); // ['private', 'legacy']