protocol/mailbox_notify_protocol library

Libp2p protocol for mailbox notifications

Implements hybrid push notification system:

  • Private mailboxes: Direct P2P stream protocol (1:1 efficient delivery)
  • Public/Shared mailboxes: GossipSub topics (1:many efficient broadcasting)

Classes

MailboxNotification
Notification message format (used by both mechanisms)

Constants

mailboxNotifyProtocolId → const String
Direct stream protocol for private mailbox notifications

Functions

getMailboxTopic(String ownerPeerId, String folderPath) → String
GossipSub topic pattern for public/shared mailboxes Format: /ricochet/mailbox/{ownerPeerId}/{folderPath}