169
edits
| Line 133: | Line 133: | ||
<li>Client Agent routes the notifications to the appropriate user exchange.</li> | <li>Client Agent routes the notifications to the appropriate user exchange.</li> | ||
</ol> | </ol> | ||
== Broadcast Messages == | |||
Each broadcast message is encrypted and contained entirely within the ciphertext attribute of the message body. The following is a list of the type of broadcast messages supported by clients. | |||
=== Send Tab To Client === | |||
Copies a tab from one client and sends it to another client. | |||
<pre> | |||
{ | |||
"type": "send_tab", | |||
"client_id": "BASE64==", // Sync client ID | |||
"url": "...", | |||
// implement either one of the following fields to transfer tab history and form data | |||
"moztabinfo": {serialized tab info} // optional | |||
"tabinfo": [{"url":"...", "title":"...", "formdata":"..."}] // optional (still needs specing) | |||
} | |||
</pre> | |||
=== Sync Now === | |||
Send a message to clients indicating that important data has been synced, and so all clients should sync ASAP. | |||
<pre> | |||
{ | |||
"type": "sync_now", | |||
"sender_id": "BASE64==", // Sync client ID of sender | |||
} | |||
</pre> | |||
edits