Receive an answer
Last updated
Was this helpful?
Last updated
Was this helpful?
The app needs to receive an answer (a session description in format) from the call recipient (the person receiving the call). The app expects this answer to be stored inside a structured data with an ID based on the random ID provided by the caller.
The app fetches a data identifier handle for the structured data that is expected to contain the answer.
The address of the structured data is based on the app ID (example.signaling.v1
) and the random ID provided by the caller. The structured data is unversioned (type 500).
The app tries to fetch a structured data handle using the data identifier handle of the answer.
If the structured data doesn't exist, the app waits 2 seconds and tries again. The app keeps making GET requests to the SAFE Network until it finds a structured data with an ID based on the random ID provided by the caller.
The app drops the data identifier handle of the answer.
The app fetches the content of the structured data using the structured data handle.
The app drops the structured data handle of the answer.
The WebRTC connection is then established!