a-type / verdant

🌿 Storage, sync & realtime for local-first web apps. Build an app in minutes, deploy as a static page, and add sync with a few lines.
https://verdant.dev
GNU Affero General Public License v3.0
188 stars 4 forks source link

Messaging #10

Open a-type opened 1 year ago

a-type commented 1 year ago

Add protocol for messaging, both broadcast and direct-to-user. Direct-to-user delivers to all a user's online replicas.

a-type commented 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?

a-type commented 1 year ago

For clients: should messages be stored? Or just fired as an event and forgotten?