Kantoor. MailboxEvents
(Kantoor v1.0.0)
Live-update notifications on Phoenix.PubSub topic mailbox:<id>.
Events carry ids only, never message content: receivers re-read what they
need (the database stays the source of truth). Shape:
{:mailbox_event, %{kind: :new | :updated | :removed, mailbox_id:, folder_id:, message_id:}}.
Summary
Functions
Broadcasts that message was added, changed or removed (folder_id overrides its folder).
Types
Functions
Broadcasts that message was added, changed or removed (folder_id overrides its folder).
@spec subscribe(Ecto.UUID.t()) :: :ok | {:error, term()}
@spec topic(Ecto.UUID.t()) :: String.t()
@spec unsubscribe(Ecto.UUID.t()) :: :ok