InvitePeer

Request Overview

This packet is sent to invite a peer to a shared space.

Headers

call_type int 0
packet_type long ((100L << 32)
sequence long
sender_uuid String
connect_back String
space_uuid String
space_members JSONHash

Body

The body of this request is empty.

Custom Objects

Space UUID

The request should include a "space_uuid" object with the UUID of the shared space that the peer is invited to join.

{
    "space_uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Space Members

This request should include a "space_members" object describing the current owners and members of the shared space.

{
    "space": {
        "members": {
            "members": [
                {
                    "member_uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
                    "status": "invited/joined/disconnected"
                }
                ],
                "owners": [
                {
                    "member_uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
                    "status": "invited/joined/disconnected"
                }
            ]
        }
    }
}

##Example
An example of an InvitePeer request:
```json
{
    "app_name": "iOS Test App",
    "call_type": 0,
    "connect_back": "tcp:172.16.20.133:64443",
    "packet_type": 429496729601,
    "sender_name": "iPhone Simulator",
    "sender_uuid": "d6f2eb53",
    "sequence": 1402245117,
    "space": {
        "members": {
            "members": [
                {
                    "member_uuid": "c4a3dc21",
                    "status": "joined"
                }
            ],
            "owners": [
                {
                    "member_uuid": "d6f2eb53",
                    "status": "joined"
                }
            ]
        }
    },
    "space_uuid": "40071168-0836-4560-a022-cb7a315b1855"
}