ssbc / rooms2

Design doc for the next edition of SSB Room servers
https://ssbc.github.io/rooms2
21 stars 4 forks source link

Specify how invite consumption actually works #33

Closed staltz closed 3 years ago

staltz commented 3 years ago

JSON POST request to inform the SSB ID? (And response is a multiserver address?)

  1. HTTP GET: User visits invite web endpoint
  2. SSB URI: App consumes SSB URI containing the room URL for the POST request
  3. HTTP POST: App makes POST request to inform its SSB ID, receives room's multiserver address
  4. MUXRPC: App connects to the room via multiserver address

Or muxrpc:

  1. HTTP GET: User visits invite web endpoint
  2. SSB URI: App consumes SSB URI containing the multiserver address
  3. MUXRPC: App connects to the room via multiserver address
  4. MUXRPC: App calls a muxrpc on the room to claim the invite