Base Del Fuego WebRTC app
KEY | Description | Type |
---|---|---|
session_id | Unique id that identifies the session | String |
peers | List of connected peers | Array of Objects |
peers_id | Unique id to identify a peer object | Key (preferable a UUID) |
Signaling | List of signal objects used to establish connections between peers | Array of Objects |
to_user_id | An id that identifies a peer that a messege will be sent to | Key (Must be a peers_id) |
from_user_id | An id that identifies the peer who is sending the messegae | Key (Must be a peers_id) |
message_id | Unique ID generated by firebase push | Key |
type | What type of message it is (sdp-offer, sdp-answer, ice) | String |
ice_or_sdp | Can be an ICE or SDP object | Object |
{
"session_id": {
"peers": [
{
"peer_id": {}
},
{
"peer_id": {}
}
],
"signaling": [
{
"to_user_id": [
{
"from_user_id": [
{
"message_id": {
"type": "",
"ice_or_sdp": ""
}
}
]
}
]
}
]
}
}