Open a-type opened 1 year ago
For broadcasts: simply send the message to all connected replicas.
For direct messages: tbd... Ideally it's sent to a user by ID and arrives on all of their replicas. How are push/pull replicas handled? Can the message be queued for delivery at next pull?
For clients: should messages be stored? Or just fired as an event and forgotten?
Add protocol for messaging, both broadcast and direct-to-user. Direct-to-user delivers to all a user's online replicas.