Loop/Architecture/Rooms: Difference between revisions

Jump to navigation Jump to search
→‎PATCH /rooms: Update protocol.
(→‎PATCH /rooms: Update protocol.)
Line 278: Line 278:
  Server-Authorization: <stripped>
  Server-Authorization: <stripped>
   
   
  {"deletedRoomTokens": ["_nxD4V4FflQ", "_xaB2Z5GdTV"]}
  {
    "responses": {
      "_nxD4V4FflQ": { "code": 200 },
      "_xaB2Z5GdTV": { "code": 200 }
}
 
In case of error for some token, the 207 Multi-Status HTTP code will be returned:
 
HTTP/1.1 207 Multi-Status
Connection: keep-alive
Date: Wed, 16 Jul 2014 13:12:46 GMT
Server-Authorization: <stripped>
{
  "responses": {
    "_nxD4V4FflQ": { "code": 200 },
    "_xaB2Z5GdTV": { "code": 403, errno: 120, message: "Not room owner" },
  }
}


''Client implementation note: Before deleting a room, the client should check room membership and forceDisconnect() all current participants''
''Client implementation note: Before deleting a room, the client should check room membership and forceDisconnect() all current participants''
68

edits

Navigation menu